public class KillerWrapper : MonoBehaviourWrapper

This class wraps a killer for usage in Lua.

You can spawn it by creating an "Entity.Killer" entity.


public bool GetInstaKill()

(Client) Checks whether this killer is set to kill instantly.

Returns: (bool) Whether this killer is set to kill instantly.


public void SetInstaKill(bool instaKill, bool gib = true)

(Client) Sets whether this killer should kill instantly.

Arguments


public int GetDamageAmount()

(Client) Gets the amount of damage this killer deals per tick.

Returns: (int) Damage amount per tick.


public void SetDamageAmount(int damage)

(Client) Sets the amount of damage this killer deals per tick.

Arguments


public float GetDamageTick()

(Client) Gets the amount of time until this killer deals damage.

Returns: (float) Amount of time until this killer deals damage.


public void SetDamageTick(float time)

(Client) Sets the amount of time until this killer deals damage.

Arguments


public LuaVector3 GetTriggerSize()

(Client) Gets the size of the trigger.

Returns: (Vector3) The size.


public void SetTriggerSize(LuaVector3 size)

(Client) Sets the size of the trigger.

Arguments


public LuaVector3 GetTriggerCenter()

(Client) Gets the center of the trigger.

Returns: (Vector3) The center.


public void SetTriggerCenter(LuaVector3 center)

(Client) Sets the center of the trigger.

Arguments


public bool GetPreviewEnabled()

(Client) Gets the visibility of the preview of the trigger.

Returns: (bool) Whether the preview is enabled.


public void SetPreviewEnabled(bool enabled)

(Client) Sets the visibility of the preview of the trigger.

Arguments


public LuaColor GetPreviewColor()

(Client) Gets the color of the preview.

Returns: (Color) The color.


public void SetPreviewColor(LuaColor color)

(Client) Sets the color of the preview.

Arguments