OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 11 Jul 2004, 17:50:43

Title: Cant Add Magazines???
Post 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
Title: Re:Cant Add Magazines???
Post by: macguba on 11 Jul 2004, 18:23:22
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.
Title: Re:Cant Add Magazines???
Post by: CopyrightPhilly on 11 Jul 2004, 18:38:54
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
Title: Re:Cant Add Magazines???
Post by: Artak on 11 Jul 2004, 19:50:15
Try adding a M16 and M16 mags. Maybe the problem is with the BAS magazine. Also try using that script on yourself (player).
Title: Re:Cant Add Magazines???
Post by: Artak on 11 Jul 2004, 19:58:04
Erm, the DE/RA 1.55 readme says about this weapon

Quote
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.
Title: Re:Cant Add Magazines???
Post by: CopyrightPhilly on 12 Jul 2004, 03:08:56
yea looks like its a bas thing, i'll just need to find another way

cheers anyways
Philly
Title: Re:Cant Add Magazines???
Post by: Artak on 12 Jul 2004, 15:42:18
Another way? Did you try it with the correct magazine string name?