Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
SpawnPlayer
Syntax
C++
int SpawnPlayer(IFunctionHandler * pH, int channelId, const char * name, const char * className, Vec3 pos, Vec3 angles);
Parameters 
Description 
int channelId 
Channel identifier. 
const char * name 
Player name. 
const char * className 
Name of the player class. 
Vec3 pos 
Player position. 
Vec3 angles 
Player angle. 

Syntax: GameRules.SpawnPlayer( int channelId, const char *name, const char *className, Vec3 pos, Vec3 angles ) 

Spawns a player. 

 

Copyright (c) 2012. All rights reserved.