team.SetSpawnPoint

From GMod Wiki

Revision as of 01:45, 16 December 2009 by CowThing (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax team.SetSpawnPoint( Integer TeamIndex, String SpawnEntName )
Where is this used?
Description:
Sets the entity the team will use to spawn at..
Returns: nil
Part of Library: Team
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Team.SetSpawnPoint]Team.SetSpawnPoint [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionSet TEAM_TERRORIST to spawn at info_player_terrorist and TEAM_COUNTERTERRORIST to spawn at info_player_counterterrorist
Used onNewerServer.png
Code
team.SetSpawnPoint( TEAM_TERRORIST, "info_player_terrorist" );
team.SetSpawnPoint( TEAM_COUNTERTERRORIST, "info_player_counterterrorist" );
OutputN/A

Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox