OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: OlaRune on 20 Jan 2004, 15:52:06

Title: Music
Post by: OlaRune on 20 Jan 2004, 15:52:06
I have made a mission with a guy playing loud music. i want the music to stop when i kill the guy. If I need a script please explain much. I am very bad at scripting. The music guy has the variable b. I have made a trigger with the "condition" (alive b) and "on activation" m=true. Theres another trigger with "condition"m and "effect" to play the music file named i can fly or something like that. I also have another trigger with "condition" (not(alive b)) and "on activation" m=false. I get the music but when i kill the guy the music continues. This works when i use the alarm sound instead of music. Please help me.
Title: Re:Music
Post by: macguba on 20 Jan 2004, 17:58:23
Make the music (m=true) trigger activate Repeatedly (rather than once).  That might do the trick.
Title: Re:Music
Post by: OlaRune on 21 Jan 2004, 22:06:41
I have already done that. Anything else I can try?
Title: Re:Music
Post by: keou on 21 Jan 2004, 22:13:02
i'm just guessing, but can't you just make the guy "say" the music, so when he's dead, he no longer "says" anything, thus stopping the music?

that would also make it directional (reliant on distance for volume), though it'd be mono.

just an idea.