Home   Help Search Login Register  

Author Topic: addaction command  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
addaction command
« on: 18 Sep 2003, 07:17:59 »
Hi

I am ussing the addaction command as a way to allow the team leader to pick his own team for a mission. Is there a way to end an addaction once it is selected so that it cant be used again?

Also if I have 3 addaction choices is there a way to end those other two that are not selected?

Thanks again. You guys are great
"Everyone dies so deal with it and move on"

                                                      ME

Unnamed

  • Guest
Re:addaction command
« Reply #1 on: 18 Sep 2003, 07:30:53 »
Hi,

Use RemoveAction along with AddAction.

AddAction returns a reference for each new action you added, I think you have to be using V1.90 or something to get it work though.

Code: [Select]
_ArseAction=Soldier AddAction ["Scratch Arse","Scratch.sqs"]

Soldier RemoveAction _ArseAction

If (Finger==......

Edit:

...Well you get the idea :)

« Last Edit: 18 Sep 2003, 07:32:07 by Unnamed »