MultiGamer Posted February 25, 2015 Report Share Posted February 25, 2015 Hi all! what could be the problem? error : incountered instead of '=' the lines: class Item1 { name = "tradezone_z"; position[] = {18454.9,0.148972,14272.8}; a = 100; b = 100; angle = -130.966; 2058 line: activationBy = "ANY"; repeating = 1; interruptable = 1; age = "UNKNOWN"; expCond = "(vehicle player) in thislist;"; expActiv = "[""ESpawn"",[""you have entered the safe zone.""]] call bis_fnc_showNotification; _safeZoneFiredEH = player addEventHandler ["Fired", { deleteVehicle (_this select 6); }];"; expDesactiv = "[""EuSpawn"",[""you went with the safe zone.""]] call bis_fnc_showNotification; player removeEventHandler["Fired", _safeZoneFiredEH];"; class Effects{}; }; Link to comment Share on other sites More sharing options...
0 sparrow8332 Posted February 25, 2015 Report Share Posted February 25, 2015 Try : making your safezone script and executing it from the sensor instead. expActiv = "[]execVM ""scripts\safezone.sqf"";"; Link to comment Share on other sites More sharing options...
0 MultiGamer Posted February 25, 2015 Author Report Share Posted February 25, 2015 Try : class Item1 { position[]={18454.9,0.148972,14272.8}; //WEST activationBy="ANY"; repeating=1; interruptable=1; age="UNKNOWN"; name="tradezone_z"; expCond="(player distance tradezone_z) < 100;"; expActiv = "[""ESpawn"",[""you have entered the safe zone.""]] call bis_fnc_showNotification; _safeZoneFiredEH = player addEventHandler ["Fired", { deleteVehicle (_this select 6); }];"; expDesactiv = "[""EuSpawn"",[""you went with the safe zone.""]] call bis_fnc_showNotification; player removeEventHandler["Fired", _safeZoneFiredEH];"; class Effects{}; { }; }; doesn't work. The error. Link to comment Share on other sites More sharing options...
0 sparrow8332 Posted February 25, 2015 Report Share Posted February 25, 2015 Try : making your safezone script and executing it from the sensor instead. expActiv = "[]execVM ""scripts\safezone.sqf"";"; Link to comment Share on other sites More sharing options...
0 MultiGamer Posted February 25, 2015 Author Report Share Posted February 25, 2015 everything is already decided:) But anyway, thanks for the help:) Link to comment Share on other sites More sharing options...
0 KiloSwiss Posted February 25, 2015 Report Share Posted February 25, 2015 Your error was thisplayer addEventHandler ["Fired" <- WRONG player addEventHandler [""Fired"" <- RIGHT player addEventHandler ['Fired' <- RIGHTSame for the line with «removeEventHandler["Fired"»Second fault in Your code:Using a local variable as handle will not work, since trigger onAct and onDeact are in different scopes.Greez KiloSwiss Link to comment Share on other sites More sharing options...
Question
MultiGamer
Hi all!
what could be the problem? error : incountered instead of '='
the lines:
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now