OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tim Pink on 17 May 2003, 12:23:23

Title: Making weapons appear on the ground
Post by: Tim Pink on 17 May 2003, 12:23:23
hi

How do u make weapons appear on the ground?, eg all the AT launchers scatered on the ground in Suicides Facile ground mission.

Tim
Title: Re:Making weapons appear on the ground
Post by: Black_Feather on 17 May 2003, 14:56:17
use this
 
thingy="weaponholder" createVehicle [x,z,y];thingy addWeaponCargo ["M16",1];


Title: Re:Making weapons appear on the ground
Post by: Egwal on 17 May 2003, 15:45:15
How can u make a handgun for example appear on the table. i think its the same plus some getpos setpos stuff. How?
Title: Re:Making weapons appear on the ground
Post by: Black_Feather on 17 May 2003, 17:46:17
that would be something like this

thingy ="weaponholder" createVehicle [0,0,0];thingy addWeaponCargo ["Beretta",1];thingy setpos [(getpos table select 0), (getpos table select 1),0.97]