Generalmonimo
Member-
Content Count
4 -
Joined
-
Last visited
-
Medals
Everything posted by Generalmonimo
-
I tried several multiplayer scenarios with a friend recently and on several occasions one of us couldn't get out of vehicles after entering. We would be able to choose 'Get out' from the action menu but nothing happens. All other actions like switching seats won't work either. Strange thing is: it happens with mods or without, on user made and BIS missions (IIRC in 'Escape from Altis' i was able to exit some cars but not able to drive them, though). It usually won't happen with every vehicle in the mission. And it always only happens to one of us and it doesn't matter who is hosting. Everything else works fine. We verified our game installation in steam.
-
Public variables are giving me headaches. I tried for hours to make them work in my scripts. Now i wrote a simple test mission to demonstrate what i'm doing and hope someone can point me to what i'm missing here. Hosting this with editor in MP mode. initServer.sqf: systemChat "Init Server"; Counter= 0; publicVariable "Counter"; while {true} do { sleep 10; systemChat "Update"; Counter= Counter + 1; publicVariable "Counter"; }; initPlayerLocal.sqf: systemChat "Init Player"; "Counter" addPublicVariableEventHandler { hint (str Counter); }; I expected to see a hint with a number increasing its value every 10 seconds. This didn't happen. Output from systemChat as expected: InitServer InitPlayer Update Update Update ...
-
Troubles with publicVariable..
Generalmonimo replied to Generalmonimo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks guys, that indeed was the problem. -
Troubles with publicVariable..
Generalmonimo replied to Generalmonimo's topic in ARMA 3 - MISSION EDITING & SCRIPTING
To clarify: I want to send data from the server to all clients (including me). This data for now is a counter but in my actual script it will be an updated scoreboard. All calculations (in this case incrementing the counter) will be done on the server (thus initServer.sqf) in the 'main'-loop. To send the data to the client i use publicVariable and i was expecting the event handler for the client (local Player, which while i'm hosting is also me) to fire and show the hint. The isServer condition in my case should be irrelevant because for initServer.sqf it is always true and for initPlayerLocal.sqf always false.