Jump to content

[Issue] Australia Police buildings and such


Sanik The Pepe

Recommended Posts

I believe that you are referring to the following:

player setVariable ["copLevel",1,true]

Adding that line to the init.sqf may be enough to get you started. It would certainly cover you until the player died. 

I recall playerRespawn.sqf being suppressed in Epoch a while back which caused some issues for a few scripts. I have honestly forgotten the workarounds at this point.

I looked through the epoch_code\custom folder for a hook you could add this too but did not see anything for the respawn function client-side.

You could modify @epochhive\epoch_server\compile\epoch_player by adding the following:

_playerObj setVariable ["copLevel",1, true];

below line 44 which reads:

_playerObj setVariable ["REVIVE", true];

then repack your epoch_server folder and give it a go. You could look at the server-side scripts further if you wanted to handle everything serverside and set that variable when a new player is created or when the player is loaded.

Those more familiar with the inner workings of Epoch may have simpler solutions.

 

 

Link to comment
Share on other sites

Putting the following in an initPlayerLocal.sqf file should do the trick (I think):

if (!isDedicated and hasInterface) then 

    waitUntil {alive vehicle player};    
    waitUntil {typeOF player != "VirtualMan_EPOCH"};
    uisleep 15;    
    player setVariable ["copLevel",1,true]
}
 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...