Squirrel/Server/Functions/Players/Spawn
From Liberty Unleashed Wiki
(Difference between revisions)
Jack Bauer (Talk | contribs) (Created page with '{{Squirrel/Title|Player.Spawn}} This function forces a player to spawn. == Arguments == * ''' player ''' - The player to be spawned. == Example == This command will make your…') |
|||
Line 1: | Line 1: | ||
{{Squirrel/Title|Player.Spawn}} | {{Squirrel/Title|Player.Spawn}} | ||
This function forces a player to spawn. | This function forces a player to spawn. | ||
+ | |||
+ | == Syntax == | ||
+ | |||
+ | <code>bool Player.Spawn( [ SpawnClass spawn ] )</code> | ||
== Arguments == | == Arguments == | ||
− | * ''' | + | * '''spawn''' - This is an optional pointer to a spawn class which you wish the player to use. If this argument is not used the player will use their current class |
== Example == | == Example == |
Latest revision as of 00:31, 25 October 2010
This function forces a player to spawn.
[edit] Syntax
bool Player.Spawn( [ SpawnClass spawn ] )
[edit] Arguments
- spawn - This is an optional pointer to a spawn class which you wish the player to use. If this argument is not used the player will use their current class
[edit] Example
This command will make yourself spawn.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "spawnme" ) { player.Spawn(); } return 1; }
[edit] Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.
[edit] Related Functions
- FindPlayer
- GetClosestPlayer
- Player.Alpha
- Player.Angle
- Player.Armour
- Player.Cash
- Player.Class
- Player.ClearWeapons
- Player.Colour
- Player.ColouredName
- Player.EnterVehicle
- Player.ExitVehicle
- Player.ForceToSpawnScreen
- Player.Frozen
- Player.GetBoundariesLower
- Player.GetBoundariesUpper
- Player.GetIgnored
- Player.Health
- Player.ID
- Player.IP
- Player.Immune
- Player.Island
- Player.LUID
- Player.Marker
- Player.MarkerScale
- Player.MarkerSprite
- Player.Muted
- Player.Name
- Player.Nametag
- Player.NametagColour
- Player.Ping
- Player.Pos
- Player.RemoveFromVehicle
- Player.RemoveLimb
- Player.Score
- Player.SetAnim
- Player.SetBoundaries
- Player.SetIgnored
- Player.SetIgnoredBy
- Player.SetVehicleEnterDoor
- Player.SetWeapon
- Player.Skin
- Player.Spawn
- Player.Spawned
- Player.Team
- Player.Train
- Player.Vehicle
- Player.VehicleSeat
- Player.Velocity
- Player.VirtualWorld
- Player.WantedLevel
- Player.Weapon
- Player.SetWeapon
- Player.WeaponAmmo
- Player.WeaponState