{"name":"BIS_fnc_FTLmanager","operator":null,"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","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"**FTL** (**F**riendly **T**o **L**ocal) manager tracks relationship between player and civilian side.\n\n**FTL State** can be one of the following: \"LOW\", \"NEUTRAL\", \"HIGH\". See FriendlyToLocal System.","syntaxes":[{"syntax":"[functionCalled, type] call BIS_fnc_FTLmanager","since":null,"effect":null,"exec":null,"params":[{"name":"functionCalled","type":"String","optional":false,"default":null,"description":"one of the following:\n- \"Init\" - initialises the FTL manager\nReturn: Number - FTL State\n- \"Destroy\" - destroys the current FTL manager instance\nReturn:\n- \"GetFTLState\" - returns current FTL state\nReturn: String - FTL state: \"LOW\", \"NEUTRAL\" or \"HIGH\"\n- \"SetFTLState\" - computes and sets the new FTLValue and FTLState afterwards\nReturn:\n- \"GetNearestTownRespect\" - Returns nearest (in 500m radius) town respect for player\nReturn: Number - respect","types":["String"],"since":null,"text":"functionCalled: String - one of the following:\n- \"Init\" - initialises the FTL manager\nReturn: Number - FTL State\n- \"Destroy\" - destroys the current FTL manager instance\nReturn:\n- \"GetFTLState\" - returns current FTL state\nReturn: String - FTL state: \"LOW\", \"NEUTRAL\" or \"HIGH\"\n- \"SetFTLState\" - computes and sets the new FTLValue and FTLState afterwards\nReturn:\n- \"GetNearestTownRespect\" - Returns nearest (in 500m radius) town respect for player\nReturn: Number - respect"},{"name":"type","type":"String","optional":false,"default":null,"description":"can be one of the following:\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)","types":["String"],"since":null,"text":"type: String - can be one of the following:\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)"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"false if the manager is not initialised yet","text":"Boolean - false if the manager is not initialised yet"}}],"examples":[{"text":"```sqf\n[\"Init\"] call BIS_fnc_FTLmanager;\n```","code":["[\"Init\"] call BIS_fnc_FTLmanager;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["FriendlyToLocal System"],"notes":[],"categories":["Arma 2: Operation Arrowhead: Functions","Arma 2: Operation Arrowhead: New Functions","Arma 3: Functions","Function Group: Sides","Functions","Introduced with Arma 2: Operation Arrowhead version 1.50","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}