Popular Content

Showing content with the highest reputation on 05/24/19 in all areas

  1. 2 points
    You want to create an overwrite for ExileServer_object_player_network_createPlayerRequest. You could do something like this: /** * ExileServer_object_player_network_createPlayerRequest * * Exile Mod * www.exilemod.com * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_sessionID", "_parameters", "_requestingPlayer", "_spawnLocationMarkerName", "_playerUID", "_accountData", "_bambiPlayer", "_cargoType"]; _sessionID = _this select 0; _parameters = _this select 1; _requestingPlayer = _sessionID call ExileServer_system_session_getPlayerObject; try { if (isNull _requestingPlayer) then { throw format ["Session %1 requested a bambi character, but doesn't have a player object. Hacker or Monday?", _sessionID]; }; _spawnLocationMarkerName = _parameters select 0; _playerUID = getPlayerUID _requestingPlayer; if(_playerUID isEqualTo "")then { throw format ["Player: '%1' has no player UID. Arma/Steam sucks!.",name _requestingPlayer]; }; _accountData = format["getAccountStats:%1", _playerUID] call ExileServer_system_database_query_selectSingle; _bambiPlayer = (createGroup independent) createUnit ["Exile_Unit_Player", [0,0,0], [], 0, "CAN_COLLIDE"]; removeHeadgear _bambiPlayer; { _cargoType = _x call ExileClient_util_cargo_getType; switch (_cargoType) do { case 1: { _bambiPlayer addItem _x; }; case 2: { _bambiPlayer addWeaponGlobal _x; }; case 3: { _bambiPlayer addBackpackGlobal _x; }; case 4: { _bambiPlayer linkItem _x; }; default { _bambiPlayer addItem _x; }; }; } forEach getArray(configFile >> "CfgSettings" >> "BambiSettings" >> "loadOut"); _bambiplayer forceAddUniform "Exile_Uniform_Woodland"; _bambiplayer addHeadgear "H_Booniehat_oli"; _bambiplayer addVest "V_Rangemaster_belt"; _bambiplayer addBackpack "B_Carryall_oli"; _bambiplayer addItemToUniform "Exile_Item_DuctTape"; _bambiplayer addItemToUniform "Exile_Item_PlasticBottleFreshWater"; _bambiplayer addItemToUniform "Exile_Item_Noodles"; _bambiplayer addItem "Exile_Item_Bandage"; _bambiplayer addItem "Exile_Item_CanOpener"; [_bambiplayer, "Exile_Weapon_Makarov",3] call BIS_fnc_addWeapon; [_sessionID, _requestingPlayer, _spawnLocationMarkerName, _bambiPlayer, _accountData] call ExileServer_object_player_createBambi; } catch { _exception call ExileServer_util_log; }; Or if you are trying to set respect loadouts you can use this: Or this: Or the various other scripts that are out there that do the same thing.
  2. 1 point
    @Brenner I know there are a few ways to do it as player creation calls to a few different SQF files. I also know my method works as I still use it to this day. But like I said I know there is more than one way of doing things which is why I linked a few other examples. Use what works for you, and don't worry about the rest is usually my approach to everything.
  3. 1 point
    @Z80CPU - thank you but your comments don't answer my question. I've probably been using Google longer than you've been around. Been there, done that. No valid and complete explanations found. You've not answered anything. You haven't indicated what is the origin of the error coming up, what is need in the files and where. I only used these two maps as examples, but I'm getting it on other maps too. I've tried over 15 maps and get the error elsewhere too.
  • Newsletter

    Want to keep up to date with all our latest news and information?

    Sign Up