Home   Help Search Login Register  

Author Topic: Simple addaction problem  (Read 687 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Simple addaction problem
« on: 26 Nov 2005, 15:40:57 »
Hi all,

I've searched around for this, and I can't see whats wrong.

I've got a simple script that activates when the player enters a trigger.

Code: [Select]
arty1 = aP addaction ["Call artillery strike","trig.sqs"]
aP being the player, trig being the script name and arty1 being the name I want the action to have (so I can remove it later)

But I get an error that says

arty1 |#| = aP addaction ["Call artillery strike","trig.sqs"]: Error reserved variable in expression

I can't work out whats wrong with this. It doesn't work in a trigger or a script.
Can anyone tell me whats wrong?

Thanks.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Simple addaction problem
« Reply #1 on: 26 Nov 2005, 16:20:13 »
arty1 is apparently used by the game (perhaps an addon or mod you're running?) try changing the name

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Simple addaction problem
« Reply #2 on: 26 Nov 2005, 16:35:24 »
Bah, I should have thought of that  ;)

I changed it to 'action1' and it works fine. Thanks.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB