Home   Help Search Login Register  

Author Topic: Triggers Activating And Deactivating  (Read 1287 times)

0 Members and 1 Guest are viewing this topic.

Offline westy159

  • Members
  • *
Triggers Activating And Deactivating
« on: 21 Dec 2005, 13:30:00 »
I would like to make a trigger that activates when the player (named player1) gets into a certain truck (named truck1) and deactivates when the player gets out of the truck. What it is is music so when he gets in hes listening to the trucks radio and when he gets out the music will stop.

How do i do this? I have a good idea on what to do but im not certain
« Last Edit: 21 Dec 2005, 13:30:51 by westy159 »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Triggers Activating And Deactivating
« Reply #1 on: 21 Dec 2005, 13:43:40 »
Set the trigger to repeatedly.

Condition:  loon1 in lorry1

Effects:  the track you want
or
On activation:  play "music1"
On deactivation:   play "music2"

where music 2 is a few seconds of silence.  (Not too few: OFP doesn't like sound files that are too small.)     There are other ways but that's the general shape of it.    Not guaranteed.
Plenty of reviewed ArmA missions for you to play

Offline westy159

  • Members
  • *
Re:Triggers Activating And Deactivating
« Reply #2 on: 21 Dec 2005, 14:24:07 »
Ok i did your first method and it doesnt stop the music when you get out so i tried your 2nd method which works but how do i make it stop the music? Like so it plays the thing 'silence' (which is found in trigger>effects>music)
« Last Edit: 21 Dec 2005, 14:32:33 by westy159 »

marcus3

  • Guest
Re:Triggers Activating And Deactivating
« Reply #3 on: 21 Dec 2005, 17:51:00 »
i put together a little mission for yah  ;)
i use a varible

Offline westy159

  • Members
  • *
Re:Triggers Activating And Deactivating
« Reply #4 on: 21 Dec 2005, 18:26:52 »
Marcus thankyou. If i new where you live you would be getting an early xmas pressie from me  :)