Home   Help Search Login Register  

Author Topic: Pick up script  (Read 1049 times)

0 Members and 1 Guest are viewing this topic.

Offline terran4999

  • Members
  • *
Pick up script
« 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

Offline Gcfungus

  • Members
  • *
Re: Pick up script
« Reply #1 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
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton