Jump to content
Sign in to follow this  
Barnaby

Placing a single weapon

Recommended Posts

I've searched for it and I cannot seem to find a way to just place one single weapon on the ground. Do any of you know the script?

Share this post


Link to post
Share on other sites

for example:

box = "WeaponHolder" createVehicle getpos player;
box addWeaponCargo ["M16A4",1];

Weaponholder works like an ammocrate but shows the contents as lying on the ground.

Share this post


Link to post
Share on other sites

thank you, ill check it out.

Edit:

I cant find this thing in the editor, i guess ill have to try something else.

Edited by Barnaby

Share this post


Link to post
Share on other sites

its not in the editor, the script will create it.

Put the code in a trigger to test it.

Share this post


Link to post
Share on other sites

I felt stupid there for a while, i got it to work now though. Thanks.

---------- Post added at 06:36 PM ---------- Previous post was at 06:27 PM ----------

The only problem im having now is i need it to be able to spawn on a table, and that table isnt near me when i spawn so its not going to work that way. Is it possible i can use a table instead?

---------- Post added at 06:42 PM ---------- Previous post was at 06:36 PM ----------

I figured it out

box = "WeaponHolder" createVehicle getpos player;

box addWeaponCargo ["M16A4",1];

instead you put this in the Game Logic

box = "WeaponHolder" createVehicle getpos this;

box addWeaponCargo ["M16A4",1];

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  

×