OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terran4999 on 29 May 2008, 01:00:47
-
hey
i am trying to make a "pick up" script the gives the player the appearence that an object has been picked up.
I want the script to delete the object as soon as the player activates the pick up option.
_this select 0
_this select 0 addAction ["Pick Up", deletevehicle this select 0]
can someone please help me correct this
-
Here is one which worked for me:
In the trigger on activation:
load = aP addaction ["Pick Up","load.sqs"]and in the load script:
disableuserinput true
aP removeaction load
aP playmove "PutDownToCombat"
~1
object1 setpos [0,0,0]
disableuserinput false