Home   Help Search Login Register  

Author Topic: Weapons on ground  (Read 1035 times)

0 Members and 1 Guest are viewing this topic.

Offline angusjm

  • Contributing Member
  • **
    • Virtual SAS
Weapons on ground
« on: 19 Sep 2002, 20:20:11 »
Is there any way to make weapons on the ground?  Could you put a random soldier or something, make him drop his weapon then vanish?  Ammo crates and trucks can be useful, but they are not effective for some missions :).

vektorboson

  • Guest
Re:Weapons on ground
« Reply #1 on: 19 Sep 2002, 21:38:22 »
Code: [Select]
_weapon = "WeaponHolder" createVehicle _position
_weapon addWeaponCargo ["M16", 1]

I think addMagazineCargo should work, too.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Weapons on ground
« Reply #2 on: 20 Sep 2002, 12:42:44 »
 :D Just in addition to this  :o here's how to do it in a trigger :


Place a Trigger on the weapon spot ya wanna create

then NAME the trigger in the "name" field - let's name it G1
and just let it fire right away (by anyone). Remember to set the RADIUS to 0/0  :o

Put this in the "OnActivation" field :


W1="WeaponHolder" createVehicle Getpos G1; W1 addMagazineCargo ["M16",4]; W1 addWeaponCargo ["M16",1]

This would place a fully loaded M16 on the weapon spot (the "G1"-trigger, right?!)

NOTE :    Sometimes (when placing handguns at least), it can take a while
        before yer able to actually pick up the gun  :P ::) it's probably
      just a question of getting the ol' OFP engine up & running.  ;D


( the orig. game enginge is buried underneath a mountain of upgrades, yanno )


 PS.  you need OFP v_1.75 (resistance) to do this.





« Last Edit: 20 Sep 2002, 12:54:13 by Tomb »