Home   Help Search Login Register  

Author Topic: How do I remove an action once it has been clicked on?  (Read 426 times)

0 Members and 1 Guest are viewing this topic.

Plastic_Boy

  • Guest
I've got a trigger where it activates my script via actions, i.e:

aP AddAction ["Talk to Crew","pilottalk.sqs"]

Once the "Talk to Crew" has been activated, how do I remove the action?

I've tried it with "aP removeAction 1" at the start of pilottalk.sqs although it doesn't seem to do anything.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:How do I remove an action once it has been clicked on?
« Reply #1 on: 28 Jul 2003, 20:11:53 »
When adding your action you'll have to give it an 'id' and then you can remove it using that 'id'. Like so:

nitroaction1 = moto1 AddAction ["boost","nitro1.sqs"]

moto1 removeAction nitroaction1
Not all is lost.

Plastic_Boy

  • Guest
Re:How do I remove an action once it has been clicked on?
« Reply #2 on: 28 Jul 2003, 20:17:02 »
Thanks! In my mission you can now interact with A.I (such as talking) via the action menu, cool :)