OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 11 Jul 2004, 17:50:43
-
ok i'm using this to give a unit a weapon + magazines
========================================
_unit=_this select 0
_wep = "BAS_JM4desACOGS"
_mag = "JAM_W556_30SDmag"
removeallweapons _unit
_unit addmagazine _mag
_unit addmagazine _mag
_unit addmagazine _mag
_unit addmagazine _mag
_unit addweapon _wep
exit;
========================================
now for some strange reson it will not give the unit and mags...
if i put this into the units init then it works...
removeallweapons this; this addmagazine "JAM_W556_30SDmag"; this addweapon "BAS_JM4desACOGS";
so any idea what i'm doing wrong???
i bet its sumthing stupid...
cheers, Philly
-
Is the script starting correctly?
Add
hint "started"
to the beginning of the script to check. Also make sure you are passing the unit correctly.
-
yea its start correct because its adding the weapon just fine.
i'm using this the start the scrip
[this] exec "start_weapon.sqs"
cheers, Philly
-
Try adding a M16 and M16 mags. Maybe the problem is with the BAS magazine. Also try using that script on yourself (player).
-
Erm, the DE/RA 1.55 readme says about this weapon
M4 SOPMOD, ACOG Optics
wpn: BAS_JM4desACOG
mag: JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag
Unlike the some other weapons, this weapon should have JAM_W556_30mag mags and not JAM_W556_30SDmag mags.
-
yea looks like its a bas thing, i'll just need to find another way
cheers anyways
Philly
-
Another way? Did you try it with the correct magazine string name?