27 lines
834 B
Plaintext
27 lines
834 B
Plaintext
URL: https://wiki.studiominus.nl/internalReference/ActOnShot.html
|
|
Title: People Playground Modding - ActOnShot
|
|
==================================================
|
|
|
|
public class ActOnShot
|
|
Inherits MonoBehaviour, Messages.IShot
|
|
Behaviour that invokes an event when it is shot by something
|
|
Fields
|
|
public float ShotDamageThreshold
|
|
[SkipSerialisation]
|
|
The minimum amount of damage that needs to be done in order to invoke the event
|
|
|
|
public float CartridgeDamageThreshold
|
|
[SkipSerialisation]
|
|
The minimum amount of damage the cartridge inherently does in order to invoke the event
|
|
|
|
public float Chance
|
|
[SkipSerialisation]
|
|
The chance of the event being invoked, ranging from 0.0 to 1.0
|
|
|
|
public UnityEvent Actions
|
|
[SkipSerialisation]
|
|
The event that is invoked when the object is shot
|
|
|
|
Methods
|
|
public void Shot(Shot shot)
|
|
No description provided |