Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » XYZ
Re: XYZ [message #330722 is a reply to message #330720] Fri, 16 May 2008 02:02 Go to previous messageGo to previous message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma:
General (4 Stars)
jonwil wrote on Fri, 16 May 2008 01:58

Do something like this
Vector3 pos;
float angle;
float Distance = whatever distance you want
GameObject *object = the object you want to appear in front of
char *Preset = the preset to create
pos = Commands->Get_Position(object);
angle = Commands->Get_Facing(object);
pos.X+=Distance*(float)cos(angle);
pos.Y+=Distance*(float)sin(angle);
Commands->Create_Object(Preset,pos);

Thats the basics of how to make something appear a certain distance in front of an object


ill give it a try remember now im dumb at c++ see
but im trying it now and damn im confussed


i tryed something myself ingame and got this..used level edit for the coordinates

and cam eout like this ingame
http://i72.photobucket.com/albums/i172/Tanner2007/Temp/Untitled.jpg
http://i72.photobucket.com/albums/i172/Tanner2007/Temp/ScreenShot39.png

[Updated on: Fri, 16 May 2008 02:08]

Report message to a moderator

 
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:18:24 MST 2025

Total time taken to generate the page: 0.00978 seconds