SSGM Help [message #275968] |
Sat, 28 July 2007 20:21 ![Go to next message Go to previous message](/theme/Renegade_Forums/images/down.png) |
Sn1per74*
Messages: 939 Registered: April 2006
Karma:
|
Colonel |
|
|
I have a few questions about chat hooks. First off, how do you make the command effect a player besides yourself. For example,
!kill (player)
2. Can you rotate objects using C++?
3. I have this code...
Quote: | else if (strncmp(Msg3,"!wall",5) == 0) { // change 12 to how many letters command + ! is change !yourcommand to what you want
if (obj){ // LEAVE THIS VERY IMPORTANT
Vector3 Pos = Commands->Get_Position(obj);
Pos.X += 3;
Commands->Create_Object("GDI_Humm-vee_Player",Pos);
Commands->Set_Model("GDI_Humm-vee_Player",obj);
char message[256];
sprintf(message,"ppage %d Wall... Created",ID);
Console_Input(message);
}
}
|
I'm trying to set the model of the Humm-vee to the large_blocker. But this code isn't working. What am I doing wrong?
![http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png](http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png)
Creator: AoBFrost
|
|
|