Sabbath
Member
could you potentially play a sound clip or Display a text on screen with this aswell?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
cutText [localize "COMBAT LOGGERS SUCK (or whatever)", "PLAIN DOWN"];
_object setVariable["USEC_BloodQty",1];
_object setVariable["NORRN_unconscious",true, true];
_object setVariable["unconsciousTime",300,true];
_object setVariable["USEC_infected",true,true];
Any word on that tut? I had a few tries and failedcuttext would only work on the client who CL, i will do a tut on how to do this...
if ((_timeout - time) > 0) then {
diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
_object setVariable["NORRN_unconscious",true, true];
_object setVariable["unconsciousTime",300,true];
_object setVariable["USEC_infected",true,true];
diag_log format["SET UNCONCIOUSNESS: %1", _playerName,_timeout];
diag_log format["SET USEC_infected: %1", _playerName,_timeout];
};
Thx. Work for me.Here is my version of this. Its somewhat harsh. I was trying to add a broken leg and gave up.
Code:if ((_timeout - time) > 0) then { _timeout = _object getVariable["combattimeout",0]; diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout]; _object setVariable["NORRN_unconscious",true, true]; _object setVariable["unconsciousTime",300,true]; _object setVariable["USEC_inPain",true]; _object setVariable["USEC_injured", true]; _object setVariable["USEC_infected",true]; diag_log format["SET UNCONCIOUSNESS: %1", _playerName]; };
Hi,
I'd like to remove all ammo from a players backpack when they log out. Possibly adding code to server_onPlayerDisconnect.sqf, anyone know how this could be done? I don't know the hive calls needed to remove backpack ammo. I's a poor mans work around to stop our players replenishing their ammo by putting it into their backpacks then re-loging with full ammo. Willing to pay someone for their time for this fix.
Kind regards
Mac
P.S Thx to TourturedChunk for the above code, works a treat on our server