Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » SSGM Help
SSGM Help [message #275968] Sat, 28 July 2007 20:21 Go to previous message
Sn1per74* is currently offline  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
Creator: AoBFrost
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cinematics On Custom
Next Topic: need help with CnC_C130drop
Goto Forum:
  


Current Time: Wed Aug 28 06:26:14 MST 2024

Total time taken to generate the page: 0.00848 seconds