Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » XYZ
XYZ [message #330691] Thu, 15 May 2008 16:15 Go to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
when doing a chat hook command how do u crate an object thats in front of you or behind you...facing a way i want to set?

GameObject *obj = Get_GameObj(ID);
if (Get_Object_Type(obj) == 1) {
GameObject *obj = Get_GameObj(ID);
Vector3 Pos = Commands->Get_Position(obj);
Pos.Z += 7.0f,Pos.Y += 0.0f,Pos.X += 0.0f;
Commands->Get_Facing("");
GameObject *cr= Commands->Create_Object("Large_Blocker",Pos);

im trying to make something set in front of me...and facing a way
i think i can do it just need to know basic way to set something few feet in any direction around ME ingame and set where that object is facing

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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: I need help for JBserv
Next Topic: MuzzleA0
Goto Forum:
  


Current Time: Sat Jan 25 13:58:46 MST 2025

Total time taken to generate the page: 0.01144 seconds