OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terran4999 on 29 May 2008, 01:00:47

Title: Pick up script
Post 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.

Code: [Select]
_this select 0

_this select 0 addAction ["Pick Up", deletevehicle this select 0]

can someone please help me correct this
Title: Re: Pick up script
Post by: Gcfungus on 29 May 2008, 08:47:28
Here is one which worked for me:

In the trigger on activation:
Code: [Select]
load = aP addaction ["Pick Up","load.sqs"]and in the load script:
Code: [Select]
disableuserinput true
aP removeaction load
aP playmove "PutDownToCombat"
~1
object1 setpos [0,0,0]
disableuserinput false