OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: _DaRkMaN_ on 22 Mar 2003, 10:02:14
-
Is there a way to remove actions from the action list??
-
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.
-
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
-
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...
-
As a workaround you could just run a looping script putting the weapon on his back .... he'll soon get the message.
-
try
ap removeaction 1
ap removeaction 2
...
-
thanks will try it now!
Edit
ap removeaction 1 and ap removeaction 2 didnt work :'(