Re: SSGM Help [message #275988 is a reply to message #275976] |
Sat, 28 July 2007 21:51 |
Sn1per74*
Messages: 939 Registered: April 2006
Karma:
|
Colonel |
|
|
Whitedragon wrote on Sat, 28 July 2007 23:01 | Wall command
[code]
class WallChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
GameObject *obj = Get_GameObj(ID); //Gets the gameobj of the player using the command.
if (obj) {
Vector3 Pos = Commands->Get_Position(obj);
Pos.X += 3.0f;
GameObject *Wall = Commands->Create_Object("GDI_Humm-vee_Player",Pos);
Commands->Set_Model(Wall,"whatever");
Console_Input(StrFormat("ppage %d Wall... Created",ID).c_str());
}
}
};
|
I dun quite get that. I don't see a ! commands or anything like that in there.
BTW: Thanks a whole lot WD- you da best!
Creator: AoBFrost
[Updated on: Sat, 28 July 2007 21:51] Report message to a moderator
|
|
|