Jump to content
Sign in to follow this  
jaynic

Dynamically enabling and disabling the revive system

Recommended Posts

Hi all,

 

As the title suggests: can I dynamically enable or disable the revive system across the entire mission without the mission having it set up in the first place?

 

I know there are respawnTemplates[] {"Revive"} (or whatever it is) but I don't know about adding those, or removing them at will.

 

In addition, if I do add or remove them: would I need to enable it to work again on all players?

 

Thanks

Share this post


Link to post
Share on other sites

There's probably variables you can set to disable it but we're still waiting on documentation for the new system.  It's coming, just no ETA.

Share this post


Link to post
Share on other sites

I use this in my Takistan Insurgency mission, I use it in the initPlayerLocal.sqf:

if(!isClass(configFile>>"cfgPatches">>"ace_common"))then{

player setVariable["BIS_revive_disableRevive",false];}else{

player setVariable["BIS_revive_disableRevive",true];};

Basically, if the client does not have ACE, then the vanilla revive system is enabled. Otherwise, the vanilla revive system is disabled.

  • Like 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  

×