Resource:Spawnmanager/setSpawnWave

From Multi Theft Auto: Wiki
Revision as of 01:51, 24 October 2008 by Talidan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function sets the spawn wave time. This can be used in conjunction with spawnPlayerAtSpawnpoint to spawn players when a wave is reached.

Syntax

bool setSpawnWave ( bool enabled, [ float time = 15000 ] )             

Required Arguments

  • enabled: A bool representing whether to enable waves or not

Optional Arguments

  • time: The time, in milliseconds, of how regularly a spawn wave occurs.

Returns

Returns true if the spawnwave was enabled or disabled, or false if a bad argument was specified.

Example

This page lacks an example

--add an example here.