Home   Help Search Login Register  

Author Topic: Good news: 1.92 addAction returns an action id!  (Read 669 times)

0 Members and 1 Guest are viewing this topic.

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Good news: 1.92 addAction returns an action id!
« on: 23 Aug 2003, 23:12:43 »
Yep. Just tried it.

In 1.92beta, the addAction command actually returns an "action id", beginning at 0. I take it I don't have to tell you the usefullness of the fact that addAction now works as designed.  ;D

Code: [Select]
...
a = addAction ["Dude!", "dude.sqs"]              <- a gets the value 0
...
...
b = addAction ["Yeah?", "yeah.sqs"]              <- b will be 1
...

Here's hoping I'm not just stating something that has worked for a while.... :-X

*EDIT. I'm a fool. This works in at least 1.91 too. Sorry for the commotion... back to the closet with me.
« Last Edit: 23 Aug 2003, 23:43:49 by Killswitch »

Knut Erik

  • Guest
Re:Good news: 1.92 addAction returns an action id!
« Reply #1 on: 23 Aug 2003, 23:28:20 »
Thats good.

But I have allready gotten used to give each action I add an ID

_MyAction = Player AddAction [BlahBlah,"Blah.sqs"]
Player RemoveAction _MyAction


It might be good news to those that are new to Ofp editing..  ;D

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re:Good news: 1.92 addAction returns an action id!
« Reply #2 on: 23 Aug 2003, 23:36:07 »
Oh dear... it works in 1.91 too  :-[

(Goes and hides under a rock)

My bad. Ok, to add insult to injury, how long has addAction returned proper "index numbers"?

My oh my...I'm ashamed now..."the boy who cried addAction"
« Last Edit: 23 Aug 2003, 23:37:10 by Killswitch »

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:Good news: 1.92 addAction returns an action id!
« Reply #3 on: 23 Aug 2003, 23:53:36 »
Quote
Oh dear... it works in 1.91 too  

lol - i was just goin to tell you that before
i scrolled down to the second reply here  ;D

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Knut Erik

  • Guest
Re:Good news: 1.92 addAction returns an action id!
« Reply #4 on: 23 Aug 2003, 23:54:24 »
Hehe. No harm done (I think)  :P
How could you know??

...

Well, you could have tested it before you gave everyone good news about something that has been avaible for a looong time...

Haahaahaa! Just kidding..  :D ;D :)
I realy dunno about how long the addaction returned the index numbers.
I thought the only way to add and remove an action was to give it an ID
Well, you learn something everyday I guess..  ;)

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re:Good news: 1.92 addAction returns an action id!
« Reply #5 on: 24 Aug 2003, 00:35:00 »
Well, you could have tested it before you gave everyone good news about something that has been avaible for a looong time...

Yep, I definitely could (and should). I was just so sure I had tried it in 1.91 and not seen it work...

Blames it on age and too little coffee...  ;D

Anyway...move on people, nothing to do here except wallow in human misery. Go on and do new wonderfull stuff with addAction.  ;D