Home   Help Search Login Register  

Author Topic: How to make a trigger delete another trigger  (Read 472 times)

0 Members and 1 Guest are viewing this topic.

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
How to make a trigger delete another trigger
« on: 29 May 2003, 22:18:01 »
Aight im working on a map, and i wanna make a trigger so that when it would activate another trigger would be deleted

The triggers are called Trig1 and Trig2. I wanna make it so if Trig1 is activated Trig2 can no longer be activated (it gets deleted)

Thanks in advance
Hey kid, wanna see a dead body!?

Kaiser_5SM

  • Guest
Re:How to make a trigger delete another trigger
« Reply #1 on: 29 May 2003, 22:29:53 »
you can initialize a variable like activatedTrig2=true on init.sqs and then in onactivation of trigger2 put your commands and put activatedtrig2=false too.

the condition of trig1 must be "this and activatedtrig2"


best regards

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Re:How to make a trigger delete another trigger
« Reply #2 on: 29 May 2003, 22:45:11 »
uh that means that to have one activated the other needs to be activated (if i read right). Thats not what i was asking, sorry  :-\ . What i wanna know is how to put in like the ONACTIVATION part of trig1 what to put so it deltetes trig2. Plz help!!!!!!!!1
Hey kid, wanna see a dead body!?

hurlothrumbo

  • Guest
Re:How to make a trigger delete another trigger
« Reply #3 on: 29 May 2003, 22:52:08 »
Put trig2's activation as 'THIS AND !trig1'

put trig1's on activation as whatever you have already and put 'trig1 = true' at the end.


That way trigger 2 will not activate once trigger1 has been activated.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to make a trigger delete another trigger
« Reply #4 on: 29 May 2003, 23:10:05 »
Try

deleteVehicle trigger2
Plenty of reviewed ArmA missions for you to play