Sanik The Pepe Posted July 19, 2017 Report Share Posted July 19, 2017 I recently installed these police buildings and they are so cool. I tried putting this code in my onPlayerRespawn but it didnt work. The only time it works is when I put it into the debug console. Any help please? Link to comment Share on other sites More sharing options...
natoed Posted July 19, 2017 Report Share Posted July 19, 2017 need more info on what you are trying to do police buildings ? class-names if you have then.... onPlayerRespawn - what code cheers natoed Link to comment Share on other sites More sharing options...
Ghostrider-GRG Posted July 19, 2017 Report Share Posted July 19, 2017 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 More sharing options...
Grahame Posted July 19, 2017 Report Share Posted July 19, 2017 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now