{"name":"BIS_fnc_FTLmanager","title":"BIS fnc FTLmanager","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_FTLmanager","revid":348927,"updated":"2023-11-08T14:44:05Z","groups":["Sides"],"status":"ok","games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","description":"**FTL** (**F**riendly **T**o **L**ocal) manager tracks relationship between player and civilian side.\n**FTL State** can be one of the following: \"LOW\", \"NEUTRAL\", \"HIGH\". See FriendlyToLocal System.","syntaxes":[{"syntax":"[functionCalled, type] call BIS_fnc_FTLmanager","params":[{"name":"functionCalled","type":"String","description":"one of the following:\n\n- \"Init\" - initialises the FTL manager\n  Return: Number - FTL State\n- \"Destroy\" - destroys the current FTL manager instance\n  Return:\n- \"GetFTLState\" - returns current FTL state\n  Return: String - FTL state: \"LOW\", \"NEUTRAL\" or \"HIGH\"\n- \"SetFTLState\" - computes and sets the new FTLValue and FTLState afterwards\n  Return:\n- \"GetNearestTownRespect\" - Returns nearest (in 500m radius) town respect for player\n  Return: Number - respect","type_expr":"String"},{"name":"type","type":"String","description":"can be one of the following:\n\n- \"sysUpdate\" (internal use)\n- \"NONE\" (no change)\n- \"CivKilled\" (-0.5)\n- \"VIPCivKilled\" (-0.7)\n- \"RebelKilled\" (-0.3)\n- \"TaskSmallRefused\" (-0.05)\n- \"TaskSmallDone\" (+0.4)\n- \"TaskSmallFailed\" (-0.4)\n- \"TaskGreatRefused\" (-0.1)\n- \"TaskGreatDone\" (+0.6)\n- \"TaskGreatFailed\" (-0.6)\n- \"CivHouseDestroyed\" (-0.5)\n- \"GreatHouseDestroyed\" (-0.8)","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"false if the manager is not initialised yet"}}],"examples":[{"code":["[\"Init\"] call BIS_fnc_FTLmanager;"]}],"see_also":["FriendlyToLocal System"]}