Home   Help Search Login Register  

Author Topic: ClearWeaponCargo  (Read 701 times)

0 Members and 1 Guest are viewing this topic.

Robinhansen

  • Guest
ClearWeaponCargo
« on: 16 Jun 2005, 20:36:50 »
What the h*** is wrong with this script! Once I execute it, it say's that it don't reconice this line: ClearWeaponCargo and ClearMagazineCargo  ???

Quote
_aa1 = _this select 0
_HeavyReammoBoxEast = _this select 1

_dir= getdir _sup

_x = (((sin _dir) *5) + (getpos _sup select 0))
_y = (((cos _dir) *5) + (getpos _sup select 1))

_ammo = _HeavyReammoBoxEast  createVehicle [_x, _y, 0]

_ammo setdir (_dir +180)


_ammo ClearMagazineCargo this
_ammo addmagazinecargo ["9K32Launcher",10]

hint "ammodepot created"

exit
« Last Edit: 16 Jun 2005, 20:45:49 by Robinhansen »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:ClearWeaponCargo
« Reply #1 on: 16 Jun 2005, 20:40:30 »
always check the comref. ;)

Robinhansen

  • Guest
Re:ClearWeaponCargo
« Reply #2 on: 16 Jun 2005, 20:53:07 »
So I actually had to turn the sentence upside down - lol...

Quote
ClearMagazineCargo _ammo