Jump to content
Sign in to follow this  
chops

MAGAZINES on tables

Recommended Posts

The great ORCs weapon pack has models for magazines (JAM3 does too, for AT mags), not just that ugly green bag, that usually appears when a magazine is dropped.

I'm using this script

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#######################################

# #

# Gun Table Script By Killerbob [GST] #

# #

#######################################

~0.1

_table = _this select 0

_gun = _this select 1

_ammo = _this select 2

_height = _this select 3

_vertical = _this select 4

_type = "weaponholder"

?_vertical:_type = "secondaryweaponholder"

_kb_testman = "SoldierWB" camcreate [0,0,0]

removeallweapons _kb_testman

_kb_testman addweapon _gun

?(secondaryweapon _kb_testman)==_gun:_type = "secondaryweaponholder"

?((secondaryweapon _kb_testman)==_gun)&&_vertical:_type = "weaponholder"

deletevehicle _kb_testman

_weapon2 = _type createVehicle [0,0,0]

_weapon2 addmagazinecargo [_ammo,10 ]

_weapon2 addweaponCargo [_gun,1]

_weapon = _type createVehicle [0,0,0]

_weapon addmagazinecargo [_ammo,10 ]

_weapon addweaponCargo [_gun,1]

_weapon setpos getpos _table

_weapon setdir (getdir _table)

_weapon2 setpos getpos _table

_weapon2 setdir (getdir _table)

_table setdir (getdir _table) + 1

_weapon setpos [(getPos _table select 0) + 0.2 * sin (getdir _table),(getPos _table select 1) + 0.2 * cos (getdir _table),(_height)]

_weapon2 setpos [(getPos _table select 0) - 0.2 * sin (getdir _table),(getPos _table select 1) - 0.2 * cos (getdir _table),;(_height)]

_table setdir (getdir _table) - 1

player reveal _weapon

player reveal _weapon2

exit

and a few tinkered versions of my own, to place the guns.

That's no problem.

What I would like to do is just have the magazines, no guns, on the table/ground.

Any ideas? Anybody?

Thank you smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×