Pum/Functions/pumPowerup Create: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Server function}} __NOTOC__ This function creates and spawns a new powerup. If the powerup is created, it triggers the public event, pumEvent_PowerupCreated on both the client and serv...) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Outdated}} | ||
__NOTOC__ | __NOTOC__ | ||
This function creates and spawns a new powerup. | This function creates and spawns a new powerup. |
Latest revision as of 20:57, 23 January 2012
This article is (partially) outdated and the information may no longer apply. | |
This function creates and spawns a new powerup.
If the powerup is created, it triggers the public event, pumEvent_PowerupCreated on both the client and server.
Syntax
Click to collapse [-]
Servermixed pumPowerup Create( int object_id, string powerup_class, float x, float y, float z, int respawnTime, int animation_mode, [mixed extra_data] )
Required Arguments
- object_id, : The name of the powerup class to destroy
- powerup_class: The internal name for the newly created powerup
- x: The X position of the powerup
- y: The Y position of the powerup
- z: The Z position of the powerup
- respawnTime: Time in ms to respawn (when making use of this feature)
- animation_mode: 0 = Static, 1 = Spinning
Optional Arguments
- extra_data: Optional data to link to this this powerup
Example
Click to collapse [-]
Server-todo description-
- todo example -
See Also
PowerupManager functions
Powerup functions
- pumPowerup_Create
- pumPowerup_Destroy
- pumPowerup_SetCollision
- pumPowerup_GetCollision
- pumPowerup_SetAnimation
- pumPowerup_GetAnimation
- pumPowerup_SetPosition
- pumPowerup_GetPosition
- pumPowerup_SetObjectID
- pumPowerup_GetObject
- pumPowerup_GetObjectID