Resource:Spawnmanager/setSpawnWave

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.