Search the Community
Showing results for tags 'connected'.
Found 2 results
-
Hello everyone! Sorry if I post a duplicated topic, but I still need a help. I have a problem that I couldn't find a solution to. On my dedicated server I need to handle players when they connect to a lobby, but unfortunately the onPlayerConnected event doesn't satisfy my needs. The problem is the onPlayerConnected and its stackable version only appear when a mission is started and it's doesn't work when there is the lobby or a briefing time. I would like you guys to give me some possible solutions, I just need to call a script when a player connects to the server in any time. Thanks in advance!
- 2 replies
-
- dedicated server
- events
- (and 4 more)
-
basic selection of connected Player help
Tom507 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I got this to work (at least partially): in the init: if (isServer) then { addMissionEventHandler["PlayerConnected",{_this execVM "playerInit.sqf"}]; }; in playerInit.sqf: thisPlayer = objNull; playerId = (_this select 4); for "_x" from 0 to (count allPlayers) -1 step 1 do { if (owner _x == playerId) then { thisplayer = (allPlayers select _x); }; }; thisPlayer = _this publicVariable "thisplayer"; publicVariable "playerId"; the Id is correctly transfered the problem is thisPlayer returns nothing the if never returns true so either the player is not in the list allPlayers at the time or i have no clue I tested everything seperately and everything works so Ihave nu f*king idea why it doesn't work Please help thanks in advance- 11 replies
-
- multiplayer
- jip
-
(and 4 more)
Tagged with: