39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
URL: https://wiki.studiominus.nl/internalReference/PowerHammerBehaviour.html
|
|
Title: People Playground Modding - PowerHammerBehaviour
|
|
==================================================
|
|
|
|
public class PowerHammerBehaviour
|
|
Inherits MonoBehaviour
|
|
Controls the Power Hammer
|
|
Fields
|
|
public AudioClip[] ImpactClips
|
|
[SkipSerialisation]
|
|
Audio played on impact
|
|
|
|
public float ForceMultiplier
|
|
[SkipSerialisation]
|
|
Effect force multiplier
|
|
|
|
public float Range
|
|
[SkipSerialisation]
|
|
Range of the effect force in units
|
|
|
|
public float CameraShakeIntensity
|
|
[SkipSerialisation]
|
|
Intensity of the camera shake
|
|
|
|
public float RequiredImpactForce
|
|
[SkipSerialisation]
|
|
Amount of physical impact force required to initiate the force effect
|
|
|
|
public LayerMask LayersToConsider
|
|
[SkipSerialisation]
|
|
What layers to consider when affecting objects
|
|
|
|
public float ImpactCharge
|
|
[SkipSerialisation]
|
|
How electricity to add to affected objects
|
|
|
|
public GameObject HammerEffectPrefab
|
|
[SkipSerialisation]
|
|
Amount of physical impact force required to initiate the force effect |