Home   Help Search Login Register  

Author Topic: on off action  (Read 630 times)

0 Members and 2 Guests are viewing this topic.

gadolinite

  • Guest
on off action
« on: 01 Jun 2003, 00:03:32 »
 ???how do you capture the incriment of the action menu to create an on-off switch in the action menu?  I am using the addaction command with the removeaction command.

I know the menu incriments away from zero each time an action is created via trigger.  Without the incriment, the action menu fills up with the on and off commands.   :DI read the tute on the action menu, but it was too complicated for a tute (oximoron).   :)Can anyone help???    

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:on off action
« Reply #1 on: 01 Jun 2003, 00:50:09 »
Yes. :)   Well, no, not really.  :(   The thing is, you can give an action a name  :)but I can't remember how.  :(  Something like

myaction = addaction blah blah

you can then removeAction myaction, rather than having to figure out the number.    8)

That doesn't make much sense  ::).... but maybe you'll figure out what I mean or somebody who knows the syntax will happen along.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:on off action
« Reply #2 on: 01 Jun 2003, 01:25:32 »
u call action like dat

actionname = unitname addaction ["actionname","scriptname"]

remove it like dat

unitname removeaction actioname

also if u wanna remove action from da script da action calls u can just do

(_this select 1) removeaction (_this select 2)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gadolinite

  • Guest
Re:on off action
« Reply #3 on: 01 Jun 2003, 02:32:33 »
thanks, I hope it works A OK