Scripting" > Ultimate Gamez :: Dropmods Tutorial - 2 - Buildings!
  Username:   Password:   
   
   Talk about games. Join and recruit clans/clan members here!
Index  FAQ  Search  Memberlist  Usergroups  Profile  Join! (free)
 Log in to check your private messages

  Dropmods Tutorial - 2 - Buildings!
Jump to:    
  Post new topic   Reply to topic Ultimate Gamez Forum Index » Renegade Help     
Author Message
Alz
Site Admin
=.C.L.A.= General


Joined: 25 May 2007
Posts: 31


Location: Here! Duh! ;P
PostPosted: Mon Jun 04, 2007 4:37 pm Reply with quote

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.


MSN Messenger
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
  Post new topic   Reply to topic Ultimate Gamez Forum Index » Renegade Help     

    

  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 

phpBB skin developed by: John Olson
Powered by phpBB © 2001, 2005 phpBB Group
 
Create your own free forum | Buy a domain to use with your forum