ToggleObjectRespawn: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Added to the needs example category)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Needs Example}}
{{Client function}}
{{Client function}}



Revision as of 09:47, 18 May 2014


Accessories-text-editor.png Script Example Missing Function ToggleObjectRespawn needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.

This function is used to toggle if an object should respawn after it got destroyed

Syntax

bool toggleObjectRespawn( object theObject, bool respawn )

Required Arguments

  • theObject: The object you want to toggle the respawn from
  • respawn : A bool denoting whether we want to enable (true) or disable (false) respawning

Returns

Returns true when the it was changed successfully, or false otherwise.

Requirements

This template will be deleted.

Example

-- Todo

See Also