Home   Help Search Login Register  

Author Topic: Variables with addaction  (Read 521 times)

0 Members and 1 Guest are viewing this topic.

evil

  • Guest
Variables with addaction
« on: 07 Mar 2004, 04:32:10 »
Is there a way to use a variable to determine what action is used, instead of having to use many different scripts?  I tried this,

action1 = ap addaction ["Do this", appicked="do this", "script.sqs"]

The idea being I could tell what action the player picked (and to script accordingly).  It didn't work though.  The only alternative I can think of is to create many little scripts, and I'd rather have one big one.

Thanks in advance.

Tactician

  • Guest
Re:Variables with addaction
« Reply #1 on: 07 Mar 2004, 05:14:06 »
See the comments on addAction in the OFPEC comref.

evil

  • Guest
Re:Variables with addaction
« Reply #2 on: 07 Mar 2004, 06:03:09 »
I get it know.  I read that before and didn't understand what it was attached to meant.  Thanks.