Jump to content
Sign in to follow this  
Linelor

Respawn script with saved loadout? (Not sure what to call this)

Recommended Posts

My clan is working on a campaign for us to play that is using ACE2 and is basically following 2 US Army squads through missions on Quesh-Kibrul.

Basically the missions involve 12 infantry and 2 M2A2 Bradly IFVs. What we want to do is make it so that when someone dies they only have a limited number of lives, maybe 2 or 3, and when someone dies they respawn on the Bradly attached to their squad. The only problem is I want the player to spawn with the loadout they died with so that they don't have refreshed ammo, etc.

I really have no idea how to do any of this as I suppose it involves some scripting. If anyone can help it would be greatly appreciated.

Again, in a nutshell I need to know:

How to do limited lives.

How to attach squad's respawns to a Bradley

How to save the loadout they had when they died when they respawn

Thanks ahead of time.

Share this post


Link to post
Share on other sites

Heres a basic idea for the loadout:

waituntil {!isnull player};
while {true} do {
 waituntil {!alive player};
 _w = weapons player;
 _m = magazines player;
 waituntil {alive player};
 removeallweapons player;
 { player addmagazine _x } foreach _m;
 { player addweapon _x } foreach _w;
};

Share this post


Link to post
Share on other sites

Unfortunately I don't have a lot of time so I can't write anything specifically for you but these may be of help:

This is not exactly what you are after but limits player respawns to a team pool of respawns:

http://www.ofpec.com/forum/index.php?topic=33731.0

Also code for ACE ruck respawns (for players only) - if you want to use it:

http://ausarma.org/forum/viewtopic.php?f=10&t=132

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  

×