Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Random Crate.
Random Crate. [message #114064] Sat, 11 September 2004 13:49 Go to previous messageGo to previous message
Dan
Messages: 395
Registered: August 2003
Location: UK
Karma:
Commander
This is the code I use in my Created() function of my script

void DAN_CnC_Crate::Created(GameObject * obj)
{
    Commands->Set_Model(obj,"vehcol2m"); 
    VehBlock = Commands->Create_Object("Vehicle_Blocker",Commands->Get_Position(obj));
}


VehBlock is a GameObject which is a private member of my script class. I use that later on script shutdown to destroy the vehicle blocker, cant have that sitting there now can we?

And yes, that looks like it should work. You did remember to move the objects.ddb from the LE's ''presets'' folder into your Renegade/Data folder didnt you?

[EDIT]

An advantage of changing the crate's model to "vehcol2m" is that you only have to touch the crate in order to pick up the crate, unlike in the BC servers where you have to run through the middle to do it.
 
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
Read Message
Previous Topic: scrips.dll 1.9.1 problem
Next Topic: DR: RA2 Vengeance, Sole Survivor, etc
Goto Forum:
  


Current Time: Fri Sep 27 04:26:52 MST 2024

Total time taken to generate the page: 0.01054 seconds