OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: surpher on 19 Jun 2004, 19:32:45
-
Hi All :wave:
I'm trying to write a script to delete dead bodies, but leaving their weapons and ammo behind. I've tried the Drop Weapon action but that did not work, probably because the unit needs to be alive to perform the action.
Any idea on how to go about it.
-
You might need to detect what weapon they are carrying, delete the whole lot then create a weaponholder with that weapon and location.
-
Not sure what you mean by weaponholder ???. I can detect the weapon they are carrying and position, but when I create the weapon, say a AK47 it does not appear (I can create a T80 though). I'm guesing you can't create a weapon with the createVehicle command. :help:
-
There's a tute somewhere that teaches you how to make a weaponholder. Try search ed depot.
:beat: *Gets Shot* :beat:
-
Thanks Guys :cheers:
Problem Solved ;D