Home   Help Search Login Register  

Author Topic: taking out the addaction from a player  (Read 805 times)

0 Members and 1 Guest are viewing this topic.

NASFMike

  • Guest
taking out the addaction from a player
« on: 05 Dec 2002, 05:03:56 »
if you add engineer1 AddAction ["build wire","buildwire.sqs"]
to a player how do u take that out of the action menu once you have used that action?

im trying to have it so u can build objects around the base but i dont know how to get teh action out after its used

Wolf

  • Guest
Re:taking out the addaction from a player
« Reply #1 on: 05 Dec 2002, 05:09:03 »
You just use the removeaction command.

unit removeaction actionid

NASFMike

  • Guest
Re:taking out the addaction from a player
« Reply #2 on: 05 Dec 2002, 05:20:21 »
can that removeaction work in the deactivation on a trigger?

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:taking out the addaction from a player
« Reply #3 on: 05 Dec 2002, 12:27:02 »
y not?

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline KTottE

  • Former Staff
  • ****
Re:taking out the addaction from a player
« Reply #4 on: 05 Dec 2002, 14:44:44 »
Yes Mike, it works in a trigger.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:taking out the addaction from a player
« Reply #5 on: 05 Dec 2002, 16:54:31 »
y not?

wasnt dat wat i said  ::)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline KTottE

  • Former Staff
  • ****
Re:taking out the addaction from a player
« Reply #6 on: 05 Dec 2002, 17:26:05 »
LCD, I will drop some swedish cooking on you if you don't watch it ;)
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline uiox

  • Contributing Member
  • **
Re:taking out the addaction from a player
« Reply #7 on: 05 Dec 2002, 20:52:36 »
In adaction script you have automatically 3 parameters

_this select 0    owner of action
_this select 1    unit that call action
_this select 2    index of action

For your problem this in your script:

unit removeaction _this select 2  

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:taking out the addaction from a player
« Reply #8 on: 06 Dec 2002, 01:13:26 »
arghh not swedish coocking  :o just not dis :tomato:

(even though i sil donno wat i did wrong  ::) :beat:)

K im shuting up ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta