OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ZNorQ on 16 May 2004, 15:59:41

Title: HOW TO TRACK A WEAPON?
Post by: ZNorQ on 16 May 2004, 15:59:41
Hey!

I'm trying to track a particular weapon during the game play.  The reason for this is to track a backpack Andy Bergen made. Andy made these by creating two components for the backpack; one weapon type (for the secondary slot) and a crate that contains the items in the backpack.

When the backpack is dropped, the connected crate must be moved from [0,0,-20] to where the sack was dropped. (Remember that ANYONE should be able to pick up the sack.)  When picked up the crate for that sack moves back to [0,0,-20].

I was hoping there was an eventhandler you could connect to weapons, but I can't really see any way to do it.

(I'm gonna use 4 packpacks in my LAN game.)

Anyone got any ideas?

ZNorQ