Jump to content
Duke101

Limiting number of respawns...?

Recommended Posts

Hello Guys,

 

I'm looking at limiting the number of respawns available as a whole. I know how to limit the number of respaws using respawn tickets, etc per player, but what about per side? So for example there could be 10 respawns available 'collectively' , whether there are 5 or 50 players present. Make sense?

 

Anyone know how I could implement that?

 

Any help would be greatly appreciated- thanks.

Share this post


Link to post
Share on other sites

I could really use help with the same thing. 

Only thing ive found so far is that mission ends when respawn hits 0.

I do NOT want that.. I want my faction to have a max number of respawns in total (this includes Join in progress aswell I belive, thats ok).   and when respawns hit 0, just meens when you are dead you cannot respawn anymore.

anyone?

Share this post


Link to post
Share on other sites

Respawntickets are always managed by the server. So you'll need to include it in initserver.sqf (https://community.bistudio.com/wiki/Event_Scripts).


You can query the remaining tickets with: [west] call BIS_fnc_respawnTickets; (e.g. hint str ([west] call BIS_fnc_respawnTickets;)


Your respawntemplate should include tickets:


respawnTemplatesWest[] = {"Tickets", "Other", "Other"}; 


See: https://community.bistudio.com/wiki/Arma_3_Respawn and https://community.bistudio.com/wiki/Description.ext


You can start dedi server and 2 clients using the Arma3 Launcher to test



You can set tickets per side as follows:


[WEST, 10] call BIS_fnc_respawnTickets;


Make sure you enable tickets in the respawnTemplatesWest (description.ext)

Share this post


Link to post
Share on other sites

Tested and Works. 

mission does not end (unless you script it that way).

no more collective respawns after tickets has run out.

Share this post


Link to post
Share on other sites

If you run in to any problems let me know. 

Dont know what level you are on in regards of scripting and editing so just let me know :)

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

×