01-23-2015, 11:07 PM
Weird that should work.
I haven't figured this one out completely yet. I used to have the loadout in the init field (and as a matter of fact, it should still work in the init field with the FHQ_fnc_safeAddLayout IF the latter is in a function module). But from the init.sqf, there MIGHT be a short period of time were things are a bit messed up. Let me try to illustrate.
Obviously, the server starts its existence first. The clients connected to it at the beginning of the mission via the lobby need to load the mission and map, and usually take a while longer to load - not a lot, but a few milliseconds. In this period, I have noticed, the player object MIGHT still be on the server, even thought "isPlayer _x" returns true, but then, in that short period of time also "local _x" returns true ON THE SERVER, which shouldn't really happen.
I am trying to find a solution that is moderately bulletproof. I'll let you know once I find something.
I haven't figured this one out completely yet. I used to have the loadout in the init field (and as a matter of fact, it should still work in the init field with the FHQ_fnc_safeAddLayout IF the latter is in a function module). But from the init.sqf, there MIGHT be a short period of time were things are a bit messed up. Let me try to illustrate.
Obviously, the server starts its existence first. The clients connected to it at the beginning of the mission via the lobby need to load the mission and map, and usually take a while longer to load - not a lot, but a few milliseconds. In this period, I have noticed, the player object MIGHT still be on the server, even thought "isPlayer _x" returns true, but then, in that short period of time also "local _x" returns true ON THE SERVER, which shouldn't really happen.
I am trying to find a solution that is moderately bulletproof. I'll let you know once I find something.
I don't need luck, I have ammo.