OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: _DaRkMaN_ on 22 Mar 2003, 10:02:14

Title: Remove action?
Post by: _DaRkMaN_ on 22 Mar 2003, 10:02:14
Is there a way to remove actions from the action list??
Title: Re:Remove action?
Post by: macguba on 22 Mar 2003, 23:46:00
If you mean an action that you have added, the answer is yes.    Can't remember how, but you need to know the action ID.

If you are talking about official BIS hardcoded actions .... dunno.    Probably not.    Which action is causing the problem?    We might be able to figure out a workaround.
Title: Re:Remove action?
Post by: evil on 23 Mar 2003, 01:07:03
Add an action like this:
important=aP addaction ["what you see","the script.sqs"]

Now, to remove that action, you would type this:
aP removeaction important

aP is the name of the player.
important is the action id
Title: Re:Remove action?
Post by: _DaRkMaN_ on 23 Mar 2003, 11:47:32
thanks for the help but the problem is that i need to remove the "weapon in hand" action.
I dont want the player to be able to take the weapon in hand.
Maybe there is a way to do a script or somthing...
Title: Re:Remove action?
Post by: macguba on 23 Mar 2003, 13:26:07
As a workaround you could just run a looping script putting the weapon on his back .... he'll soon get the message.

Title: Re:Remove action?
Post by: Artak on 23 Mar 2003, 14:20:39
try
ap removeaction 1
ap removeaction 2
...
Title: Re:Remove action?
Post by: _DaRkMaN_ on 23 Mar 2003, 14:38:25
thanks will try it now!

Edit
ap removeaction 1 and ap removeaction 2 didnt work  :'(