Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » spwaners code
Re: spwaners code [message #354450 is a reply to message #354350] Wed, 15 October 2008 08:27 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
snazy2000 wrote on Tue, 14 October 2008 11:51

i have made this code bt it dont work in game
GameObject *dave = Commands->Create_Object("Invisible_Object", position);
Commands->Attach_To_Object_Bone(dave, obj, "GDI Spawner");
}



I could be wrong but I don't remember any object in the presets that goes by the name of "Invisible_Object" but in any case, you are attaching this "Invisible_Object" to the person that said the chat message I assume, notice, you are attaching this newly created object to a bone named "GDI Spawner"...

Commands->Attach_To_Object_Bone(dave, obj, "GDI Spawner");

My guess is that this line is pretty much useless unless you want the "Invisible_Object" to be stuck to the speaker's origin. Also, look through the presets list and choose an object that you want this script to create, then replace "Invisible_Object" with this new preset name, you can also remove that attach to bone line of code, it will spawn at the position you are finding fine if you do.


 
Read Message
Read Message
Previous Topic: Fix scope?
Next Topic: Presets:
Goto Forum:
  


Current Time: Wed Dec 04 13:14:54 MST 2024

Total time taken to generate the page: 0.01163 seconds