Engine.SpawnPlayer: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Function == <syntaxhighlight lang="javascript"> function Engine.SpawnPlayer(player); function Engine.SpawnPlayer(player, x, y, z, rotation); </syntaxhighlight> == Argumen..." |
(No difference)
|
Revision as of 03:05, 9 August 2014
Function
function Engine.SpawnPlayer(player);
function Engine.SpawnPlayer(player, x, y, z, rotation);
Arguments
- player
- The player to spawn.
Optional Arguments
- x
- The x position to spawn at.
- y
- The y position to spawn at.
- z
- The z position to spawn at.
- rotation
- The rotation to spawn with.
Notes
Calling Engine.SpawnPlayer with only the player will just respawn the player in the same position and rotation.
Calling Engine.SpawnPlayer will create a new player this means that your inventory will be reset.