View Full Version : Adding a loaded laser designator?

Nov 18 2005, 11:26
Hi all!
When I add a LaserDesignator and its ammo to a trucks cargo space they is put there as two separate units - that is, you have to pick up the laser designator (which then doesn't have any ammo loaded) and then pick its ammo up and reload it. I want the ammo to be loaded directly! http://forums.bistudio.com/oldsmileys/banghead.gif
I have tried both 'addMagazineCargo' followed by 'addWeaponCargo' (which usually work for other weapons) and also the other way around. Any ideas? http://forums.bistudio.com/oldsmileys/help.gif

Nov 18 2005, 17:36
You could make the player run a script that looks something like this:

@<hidden> player=="LaserDesignator"
player removeweapon "LaserDesignator"
player addmagazine "LaserDesignator"
player addweapon "LaserDesignator"

Its not a great solution but its the only one I could think of right now.

Nov 18 2005, 20:26
Yeah, a bit of a work-around, but it should work&#33; Thanks&#33;