granQ 293 Posted October 24, 2008 Hola amigos. Anyone know how I can spawn a magazine on the ground, not in an ammobox and perferably if it works in multiplayer.. Heard about a complicated idea that basicly puts an ai below the ground and make him drop a object. any other suggestions? Share this post Link to post Share on other sites
Lester 0 Posted October 24, 2008 erm ... create a weaponholder an put the weapon in it ? Its a little bit tricky, in MP the weaponholder create is global but the addweapon commands have to execute local ! You should solve this via a global start of this commands: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if (IsServer) then {WHname = "Weaponholder" createvehicle [x,y,z];publicvariable "WHname";}; sleep 0.1; WHname addweapon "weaponclassname"; Share this post Link to post Share on other sites
granQ 293 Posted October 24, 2008 hmm, but does that mean if there is 5 people there will be 5 mags or just one? thanks for the help, will try it. Share this post Link to post Share on other sites
i0n0s 0 Posted October 24, 2008 There will be only one magazine inside it. But if you miss to broadcast that command, then there will be only a magazine on the server, and for the rest it will be empty. Share this post Link to post Share on other sites