Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » XYZ
Re: XYZ [message #330726 is a reply to message #330691] Fri, 16 May 2008 04:04 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
Say you want to create the blocker infront of you, facing the same way...

GameObject *obj = Get_GameObj(ID);
Vector3 Pos = Commands->Get_Position(obj);
Pos.X += 10.f;
Pos.Y += 10.0f;
float Facing = Commands->Get_Facing(obj);
GameObject *platform = Commands->Create_Object("Large_Blocker",Pos);
Commands->Set_Facing(platform, Facing);


Now just change the 10.0f to a distance that suits you. But be aware that you may end up spawning it into a wall or something...



 
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: Sun Jan 26 16:25:39 MST 2025

Total time taken to generate the page: 0.01041 seconds