ToggleObjectRespawn

From Multi Theft Auto: Wiki
Revision as of 11:52, 17 February 2013 by X86dev (talk | contribs)
Jump to navigation Jump to search

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

Minimum server version n/a
Minimum client version 1.4

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.4" />

Example

-- Todo

See Also