Page 1 of 1

Events

Posted: Thu Feb 16, 2006 4:10 am
by wdboyd
Salutations,

Desire: Mission Event to call upon a .wav file to play when a ship is destroyed.

How should it be done in the games mission event editor? Please be precise. Thanks. [:)]

RE: Events

Posted: Thu Feb 16, 2006 9:53 pm
by xanthos
event: {
id: 130,
time: 0.0,
delay: 3.0,
event: Jump
event_ship: "Whitestar"
event_target: "Nerasil"
event_sound: "Ss/exiting_the_system.wav"
event_chance: 100
trigger: "Event"
trigger_param: 129
}

The event parm looks like this...

You need a file containing your wav file and specify it as above, (my folder is called Ss and resides in the Starshatter\Mods folder.

The "trigger-ship" parm is defined as the target, (your ship) of the trigger condition, then select "destroyed" as the trigger condition.

For the sound to play in the game you'll need to create a dat of the mission or start SS using the - sys shortcut


RE: Events

Posted: Fri Feb 17, 2006 3:21 am
by wdboyd
Thanks.... I'll give it try. [:D]

RE: Events

Posted: Mon Feb 20, 2006 2:55 am
by wdboyd
I have been able to get my files to play as I like.

Thanks for all of the help. [:)]