Resource:Spawnmanager/setSpawnWave: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{Server function}} This function sets the spawn wave time. This can be used in conjunction with spawnPlayerAtSpawnpoint to spawn player...)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server function}}
{{Server function}}
This function sets the spawn wave time.  This can be used in conjunction with [[Spawnmanager/spawnPlayerAtSpawnpoint|spawnPlayerAtSpawnpoint]] to spawn players when a wave is reached.
This function sets the spawn wave time.  This can be used in conjunction with [[Resource:Spawnmanager/spawnPlayerAtSpawnpoint|spawnPlayerAtSpawnpoint]] to spawn players when a wave is reached.


==Syntax==
==Syntax==

Latest revision as of 01:51, 24 October 2008

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.