Home   Help Search Login Register  

Author Topic: Weapons in games  (Read 517 times)

0 Members and 1 Guest are viewing this topic.

Turver

  • Guest
Weapons in games
« on: 10 Sep 2003, 20:43:50 »
How do i put selected weapons on gmaes in a ammo crate

like g36 m21 ster aug them type into a ammo crate?

how do i do it?

m21man

  • Guest
Re:Weapons in games
« Reply #1 on: 10 Sep 2003, 20:58:33 »
You mean adding weapons to crates? Just put something like this in the init field of the ammo box:
this addweaponcargo ["m21",3];this addmagazinecargo ["m21",10]
« Last Edit: 10 Sep 2003, 20:59:06 by m21man »

Offline rhysduk

  • Former Staff
  • ****
Re:Weapons in games
« Reply #2 on: 12 Sep 2003, 18:40:19 »
or u could use a script and execute it through the Init feild of a ammo crate/box ;;

Example ;D

_crate = _this Select 0


ClearMagazineCargo _crate
ClearWeaponCargo _crate


_crate AddWeaponCargo ["G36A", 5]
_crate AddWeaponCargo ["Steyr", 5]
_crate AddWeaponCargo ["M21", 5]
_crate AddMagazineCargo ["SteyrMag", 25]
_crate AddMagazineCargo ["M21", 25]
_crate AddMagazineCargo ["G36AMag", 25]

Exit


the syntax for the ammo crate's init feild would be

[this] exec "turversammocrate.sqs"

NOTE - u have to name the file "turversammocrate" ;D

Hope that helps

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)