Jump to content
Sign in to follow this  
fish44

keeping same weapons after respawn.

Recommended Posts

1.Is there a way to retain the weapons  load out after a unit has respawned. (i know there was a script for OPF).

2. How do I make the body hide when the new respawn appears

3. How would i force all units to respawn, if one unit is killed?

Thanks in advance

Share this post


Link to post
Share on other sites

Maybe i have posted this in the wrong section ? huh.gif

Share this post


Link to post
Share on other sites
Maybe i have posted this in the wrong section ? huh.gif

Yep. Wrong section m8. smile_o.gif

Anyway try this: http://www.armaholic.com/page.php?id=1554

Its a link to toadlife's OFP weapon respawn script that I converted for ArmA some months back.  Works well in MP on both local and dedicated servers.

Share this post


Link to post
Share on other sites
Quote[/b] ]1.Is there a way to retain the weapons load out after a unit has respawned. (i know there was a script for OPF).

If you mean the units should get the loadout it had when killed, then look here.

Quote[/b] ]2. How do I make the body hide when the new respawn appears

There's a dead body & object removal system available here.

Quote[/b] ]3. How would i force all units to respawn, if one unit is killed?

Not sure what you tryin to achieve....maybe setposing rest of the group at respawn marker when one (or even a specific unit/player) dies? Some more info about what you're triyn to do would be nice.

Share this post


Link to post
Share on other sites

easiest way (untested..)

store players weapons/mags in variables (at any time you want):

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

cache_weapons=[];

cache_mags=[];

//set weapons...

//cache_weapons=["SVD","RPG7VR"];

//...or get them from player

cache_weapons=weapons player;

//set magazines...

cache_mags=["10Rnd....","PG7VR",....];

//...or get them from player

cache_mags=magazines player;

...and restore them at any time you want with:

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

//set weapons

{player addweapon _x;} foreach cache_weapons;

//set magazines

{player addmagazine _x;} foreach cache_mags;

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  

×