Home   Help Search Login Register  

Author Topic: Removing action from addon object  (Read 478 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Removing action from addon object
« on: 14 Aug 2003, 12:46:06 »
Is it possible to remove an action from an object like CAT FIRE2 so the player cannot light or put out fire. I've already tried the removeaction command but since I don't know the actionid I had no luck.  :(

Can someone tell me the way, if it can be done.

notmucheyecandy

  • Guest
Re:Removing action from addon object
« Reply #1 on: 14 Aug 2003, 22:41:36 »
you would have to find the action ID.
You could place a trigger around the object size 5,5 activation repeatedly, anybody

activation line:

Code: [Select]
player removeaction 1
mind you that would only work for one unit

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Removing action from addon object
« Reply #2 on: 14 Aug 2003, 22:50:54 »
how about

{_x removeaction 1} foreach units thislist
or would it be just
{_x removeaction 1} foreach thislist

in the triggers activation line

Not all is lost.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Removing action from addon object
« Reply #3 on: 16 Aug 2003, 22:57:25 »
I think the "removeaction" command only works for actions that are added in using the "addaction" command. However, you could simply place the fire a meter or two beneath the ground using the 'setpos' command. If you put it down there far enough then it will be out of the player's reach, and he can't turn it off.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Kaliyuga

  • Guest
Re:Removing action from addon object
« Reply #4 on: 16 Aug 2003, 23:20:57 »
what about a repeatable trigger that detected if the fire was "inflame" or not... so if you did put it out it would just start right back up again?

condition: fire inflamed 0
activation: fire inflame true

inflamed should return whether or not an object is on fire while inflame will light or extenguish(sp?) the flame

can't remember how often triggers repeat, but this should make it pretty much impossible to keep out for any period of time
:toocool: