Home » Renegade Discussions » Mod Forum » Scripts
Scripts [message #19763] |
Sat, 10 May 2003 14:52 |
|
bigwig992
Messages: 555 Registered: February 2003 Location: Nashua, NH
Karma: 0
|
Colonel |
|
|
Grrr. I tryed my script in Ren but it just crashes. I set up my script as a poke and play and I put it in my editor cache. For location I put myfilename.txt
Here's my script. Can anyone pick out the problem?
*****************Camera
-0 Enable_Letterbox, 1 1
-0 Create_Object, 0, "camera", 0, 0, 50
-0 Play_Animation, 0, "camera.camera", 0
-0 Control_Camera, 0
-0 Set_Screen_Fade_Color, 0, 0, 0, 0
-0 Set_Screen_Fade_Opacity, 1, 0
-2 Set_Screen_Fade_Opacity, 0, 0
-290 Set_Screen_Fade_Opacity, 0, 2
-319 Set_Screen_Fade_Opacity, 0, 0
-319 Control_Camera, -1
-319 Enable_Letterbox, 0, 1
-319 Destroy_Object, 0
*****************Animation
-0 Create_Object, 1, "fly_bone"
-0 Play_Animation, 1, "fly_bone.fly_bone"
-305 Destory_Object, 1
*****************A-10
-0 Create_Object, 2, "GDI_A10_Flyover", 0, 0, 50
-0 Attach_to_Bone, 2, 1, "Box01"
-301 Destory_Object, 2
*****************Pilot Eject
-248 Create_Real_Object, 3, "GDI_Grenader_0", 1, "Box01"
-248 Create_Object, 4, "eject_bone"
-248 Attach_to_Bone, 4, 1, "Box01"
-248 Attach_to_Bone, 3, 4, "eject"
-248 Attach_Script, 3, "M00_Base_Defense", "0,300,2"
-248 Attach_Script, 3, "
-250 Play_Animation, 4, "eject_bone.eject_bone"
-260 Attach_to_Bone, 3, -1, "eject"
-270 Destory_Object, 4
*****************Sounds
-0 Play_Audio, 2, "gdi_A10_Idle_01"
-0 Play_Audio, 0, "Music_Level_x0_Tank"
-240 Play_Audio, 2, "mayday"
-The ONLY Renegade fan to pee off a school.
|
|
|
Scripts [message #19773] |
Sat, 10 May 2003 17:46 |
|
Dante
Messages: 1039 Registered: February 2003
Karma: 0
|
General (1 Star) |
|
|
you have camera.w3d?
and it is setup properly?
how did you set it up?
RenEvo
|
|
|
Scripts [message #19798] |
Sat, 10 May 2003 23:20 |
|
bigwig992
Messages: 555 Registered: February 2003 Location: Nashua, NH
Karma: 0
|
Colonel |
|
|
*sigh*
Here is my most updated script.
*****************Camera
-0 Enable_Letterbox, 1, 1
-0 Create_Object, 0, "camera", 0, 10, 50, 0
-0 Play_Animation, 0, "camera.camera", 1
-0 Control_Camera, 0, "camera"
-0 Set_Screen_Fade_Color, 0, 0, 0, 0
-0 Set_Screen_Fade_Opacity, 1, 0
-290 Set_Screen_Fade_Opacity, 0, 2
-319 Set_Screen_Fade_Opacity, 0, 0
-319 Control_Camera, -1
-319 Enable_Letterbox, 0, 1
-319 Destroy_Object, 0
*****************Animation
-0 Create_Object, 1, "fly_bone", 0, 0, 50, 0
-0 Play_Animation, 1, "fly_bone.fly_bone", 1
-305 Destory_Object, 1
*****************A-10
-0 Create_Object, 2, "GDI_A10_Flyover", 0, 0, 50, 0
-0 Attach_to_Bone, 2, 1, "Box01"
-301 Destory_Object, 2
*****************Pilot Eject
-248 Create_Real_Object, 3, "GDI_Grenader_0", 1, "Box01"
-248 Create_Object, 4, "eject_bone", 0, 100, 50, 0
-248 Attach_to_Bone, 4, 1, "Box01"
-248 Attach_to_Bone, 3, 4, "eject"
-250 Play_Animation, 4, "eject_bone.eject_bone", 1
-260 Attach_to_Bone, 3, -1, "eject"
-270 Destory_Object, 4
*****************Sounds
-0 Play_Audio, "gdi_A10_Idle_01", 1, "Box01"
I have the poke 'n' play script attached to a civilian, and created a spawner for it. The poke n play parameters are "Text File: brianscript.txt" (its in my editor cache) and "Location: X=0 Y=0 Z=0". I have the following w3d's in my editor cache:
camera.w3d
eject_bone.w3d
fly_bone.w3d
I have created a new preset by clicking "add" under one of the other music songs, to get its volume and radius down. I changed the file to "mayday.wav", which is also in my editor cache.
Now whenever I "poke" my civilian, Renegade crashes. I think I'm doing everything right, and I just told you, everything. Any Suggestions?
-The ONLY Renegade fan to pee off a school.
|
|
|
Scripts [message #19801] |
Sun, 11 May 2003 00:50 |
|
Dante
Messages: 1039 Registered: February 2003
Karma: 0
|
General (1 Star) |
|
|
again i ask how you have your camera.w3d setup...
another suggestion, use the westwood naming conventions
X3D_Test_Camera.w3d instead of camera.w3d
so your play animation would be
X3D_Test_Camera.X3D_Test_Camera
*note..
x = effects
3d = well, duh, 3d effect
that might not be right in WS terms, but this is how i define them
RenEvo
|
|
|
|
Goto Forum:
Current Time: Tue Dec 24 07:08:38 MST 2024
Total time taken to generate the page: 0.00860 seconds
|