OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Panther on 28 Dec 2004, 12:45:16
-
my script works like this :
you have a civil thats cald civ1
init.sqs :
civ1 addEventHandler ["killed",{[_this select 1] exec "jail.sqs"}]
jail.sqs :
_killer = _this select 0
~1
hint format [ "ATTENTION!\n%1 has killed a civilian! He will go to Jail for his crime!",(name _killer)]
~3
?_killer==player:titlecut ["","BLACK OUT",3]
~4
removeallweapons _killer
_killer setpos (getpos jail)
~1
?_killer==player:titlecut ["","BLACK IN",3]
Exit
But the problem is. With the player that has the server it works fine. But with the other player there's no black out
or black in, no RemoveAllWeapons and no hint.
dos anny 1 know what the problem is ?
and help me out :)
-
i believe eventhandlers are local, since the civ is "local" to the server,that is what will exec the script, nothing else