Archive for Ultimate Gamez Talk about games. Join and recruit clans/clan members here!
 



       Ultimate Gamez Forum Index -> Renegade Help
Alz

Dropmods Tutorial - 2 - Buildings!

Here is the code for my Flyable Nod Powerplant:
Code:

-1 Create_Object,  1, "V_NOD_cargop_sm"   
-1 Play_Animation,  1, "V_NOD_cargop_sm.M_cargo-drop_sm", 0
-1 Play_Audio,  "C130_IDLE_02", 1, "Cargo"
-360 Destroy_Object,  1

-1 Attach_To_Bone,  3, 1, "Cargo"
-180 Attach_To_Bone,  3, -1, "Cargo"
-900 Attach_Script,  3, "M02_PLAYER_VEHICLE", ""

-400 Create_Real_Object, 4, "CnC_Nod_Apache"
-400 Create_Object, 5, "enc_npwr"
-400 attach_to_bone,    5,  4, "wheelp01"
-400    Attach_Script,          4, "Mx0_Obelisk_Weapon_DLS"
-400   Attach_Script,      5, "M00_Damage_Modifier_DME", "0,1,1,0,0"
-400    Attach_Script,          4, "M00_Disable_Physical_Collision_JDG"

Those who are smart, will find what the nod powerplant is, for those who don't get it here it is:
Code:

-400 Create_Object, 5, "enc_npwr"

Notice how it doesnt use "Create_Real_Object" it uses "Create_Object" instead, this is for stuff like buildings, and w3d files. There is a list of the buildings Here.

Now just as you did in the last tutorial, edit to your liking, say you wanted a nod buggy to drive, and you wanted a obl as your building, here would be the code:
Code:

-1 Create_Object,  1, "V_NOD_cargop_sm"   
-1 Play_Animation,  1, "V_NOD_cargop_sm.M_cargo-drop_sm", 0
-1 Play_Audio,  "C130_IDLE_02", 1, "Cargo"
-360 Destroy_Object,  1

-1 Attach_To_Bone,  3, 1, "Cargo"
-180 Attach_To_Bone,  3, -1, "Cargo"
-900 Attach_Script,  3, "M02_PLAYER_VEHICLE", ""

-400 Create_Real_Object, 4, "CnC_Nod_Buggy"
-400 Create_Object, 5, "enc_nobl"
-400 attach_to_bone,    5,  4, "wheelp01"
-400    Attach_Script,          4, "Mx0_Obelisk_Weapon_DLS" - Optional
-400   Attach_Script,      5, "M00_Damage_Modifier_DME", "0,1,1,0,0"- Optional


UPDATE:
Code:

-1 Create_Object,  1, "V_NOD_cargop_sm"   
-1 Play_Animation,  1, "V_NOD_cargop_sm.M_cargo-drop_sm", 0
-1 Play_Audio,  "C130_IDLE_02", 1, "Cargo"
-360 Destroy_Object,  1

-1 Attach_To_Bone,  3, 1, "Cargo"
-180 Attach_To_Bone,  3, -1, "Cargo"
-900 Attach_Script,  3, "M02_PLAYER_VEHICLE", ""

-400 Create_Real_Object, 4, "CnC_Nod_Apache"
-400 Create_Object, 5, "enc_npwr"
-400 Create_Object, 6, "npwr_int_n"
-400 attach_to_bone,    5,  4, "wheelp01"
-400    Attach_Script,          4, "Mx0_Obelisk_Weapon_DLS"
-400   Attach_Script,      5, "M00_Damage_Modifier_DME", "0,1,1,0,0"
-400    Attach_Script,          4, "M00_Disable_Physical_Collision_JDG"

This will create a nod power plant with the interiors.

       Ultimate Gamez Forum Index -> Renegade Help
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum