Search the Community
Showing results for tags 'handleheal'.
Found 1 result
-
Event Handler - Handleheal - Dedicated Server Help
aie-boshell posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I'm having an issue getting this event handler to fire on dedicated server. Everything works perfect in player hosted server. I've tried to use the event handler with "remoteexec" but cannot seem to get that to work on player hosted or dedicated servers. I do believe "remoteexec" is the answer but I somehow have it setup wrong. Here are the codes ran from initserver.sqf This one works exactly as I want it to on player hosted server but does nothing on a dedicated server. while {true} do {sleep 5; {_x removeallEventHandlers "Handleheal"} forEach allUnits;{_x addEventHandler ["Handleheal", {_this select 1 addScore 1; _this select 0 disableai "move"; fire_enableaimoveforheal_trigger_1 = true}]} forEach allUnits }; This one above works exactly as I want it to on player hosted server but does nothing on a dedicated server. while {true} do {[{_x ["Handleheal", {_this select 1 addScore 1; _this select 0 disableai "move"; fire_enableaimoveforheal_trigger_1 = true}foreach allunits]] remoteExec ["addEventHandler", 0, true] }; This one above was my progress to get the Event Handler to work on dedicated server using "remoteexec". I cannot get this one to even do anything on player hosted server so I'm pretty sure I have some type of error in there but I'm getting no error code. Anyone that attempts to help is very much appreciated :-)- 4 replies
-
- eventhandler
- handleheal
-
(and 1 more)
Tagged with: