Jump to content
Sign in to follow this  
granQ

How to spawn a magazine on ground?

Recommended Posts

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

erm wow_o.gif ... 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 ! wink_o.gif

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×