Home » Renegade Discussions » Mod Forum » Crate location and frequency
Re: Crate location and frequency [message #420129 is a reply to message #419973] |
Wed, 17 February 2010 09:24 |
Khyron263
Messages: 32 Registered: September 2009
Karma:
|
Recruit |
|
|
i put this is gmmain.cpp
Quote: |
void reb_timed_destroy::Created(GameObject *obj){
Commands->Start_Timer(obj,this,31.0f,1);
}
void reb_timed_destroy::Timer_Expired(GameObject *obj, int number){
if(number ==1){
Commands->Destroy_Object(obj);
}
}
ScriptRegistrant<reb_timed_destroy> reb_timed_destroy_Registrant("reb_timed_destroy","");
ScriptRegistrant<reb_GDI_a10_strike> reb_GDI_a10_strike_Registrant("reb_GDI_a10_strike","");
ScriptRegistrant<reb_Nod_Jet_strike> reb_Nod_Jet_strike_Registrant("reb_Nod_Jet_strike","");
|
then tryed to make the call in the txt files.
Quote: |
;******************* CHEAT SHEET ******************************
;Start frame create_object slot number model x,y,z,facing animation name( model*hierarchy*.anim )
;Start frame Play_Animation slot number anim name ( model*hierarchy*.anim ) looping Sub Object
;Start frame Play_Audio wave filename slot number bone name
; * no slot # / bone name = 2D Audio
;0= NO LOOP ( kills object when finshed ) 1= LOOP
;************************* LEVEL 3: HOVERCRAFT EXPLODE AT BEACH ************************
; ****************************** Character Bone
-1 Create_Real_Object, 1, "GDI_A10_Flyover"
-1 Play_Animation, 1, "vf_gdi a10.vf_gdi a10", 0
-600 destroy_object, 1
-900 attach_script, 1, "reb_timed_destroy", ""
; ****************************** Path
-1 Create_Object, 2, "X3_a10_dep1", 0, 0, 0, 0
-1 Play_Animation, 2, "X3_a10_dep1.X3_a10_dep1", 0
-600 Destroy_Object, 2
-1 Attach_To_Bone, 1, 2, "BN_a-10_004"
-900 attach_script, 2, "reb_timed_destroy", ""
|
vehicles still stay in the air.
then I tryed to put it right in the gmmain.cpp
Quote: |
void reb_GDI_a10_strike::Created(GameObject *obj) {
Commands->Attach_Script(obj,"reb_timed_destroy","");
Commands->Create_2D_WAV_Sound("m00evan_dsgn0073i1evan_snd.wav");
Console_Input("msg [WGC] Warning!!!");
Console_Input("msg [WGC] A-10 GDI AirStrike ordered to Attack Nod's Base!");
|
but when i call for an airstrike, after 31 seconds *I* die LOL
when you see what I did, can you also explain what I did wrong so I can learn, thanks!
|
|
|
|
|
Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Sun, 14 February 2010 12:48
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Sun, 14 February 2010 13:31
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Sun, 14 February 2010 14:55
|
|
|
Re: Crate location and frequency
By: wittebolx on Sat, 25 September 2010 07:01
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Sun, 14 February 2010 23:29
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Mon, 15 February 2010 14:16
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Tue, 16 February 2010 01:26
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Wed, 17 February 2010 07:58
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Wed, 17 February 2010 10:34
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Tue, 23 February 2010 08:07
|
|
|
Re: Crate location and frequency
|
|
|
Re: Crate location and frequency
By: reborn on Tue, 23 February 2010 08:54
|
|
|
Re: Crate location and frequency
|
Goto Forum:
Current Time: Mon Dec 30 03:30:13 MST 2024
Total time taken to generate the page: 0.01027 seconds
|