This class wraps a trigger for usage in Lua.
You can spawn it by creating an "Entity.Trigger" entity.
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