BIS fnc FTLmanager: Difference between revisions
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *O([a-z ])" to "$1 - o$2")  | 
				||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{RV|type=function  | {{RV|type=function  | ||
| arma2oa  | |game1= arma2oa  | ||
|version1= 1.50  | |||
|1.00  | |game2= tkoh  | ||
|version2= 1.00  | |||
|game3= arma3  | |||
|version3= 0.50  | |||
|gr1= Sides  | |gr1= Sides  | ||
| '''FTL''' ('''F'''riendly '''T'''o '''L'''ocal) manager tracks relationship between player and civilian side.<br>  | |descr= '''FTL''' ('''F'''riendly '''T'''o '''L'''ocal) manager tracks relationship between player and civilian side.<br>  | ||
'''FTL State''' can be one of the following: "LOW", "NEUTRAL", "HIGH". See [[FriendlyToLocal System]].  | '''FTL State''' can be one of the following: "LOW", "NEUTRAL", "HIGH". See [[FriendlyToLocal System]].  | ||
| [functionCalled, type] call [[BIS_fnc_FTLmanager]]  | |s1= [functionCalled, type] call [[BIS_fnc_FTLmanager]]  | ||
|p1= functionCalled: [[String]] -   | |p1= functionCalled: [[String]] - one of the following:  | ||
* "Init" - initialises the FTL manager<br>Return: [[Number]] - FTL State  | * "Init" - initialises the FTL manager<br>Return: [[Number]] - FTL State  | ||
* "Destroy" - destroys the current FTL manager instance<br>Return:    | * "Destroy" - destroys the current FTL manager instance<br>Return:    | ||
| Line 19: | Line 24: | ||
* "GetNearestTownRespect" - Returns nearest (in 500m radius) town respect for player<br>Return: [[Number]] - respect  | * "GetNearestTownRespect" - Returns nearest (in 500m radius) town respect for player<br>Return: [[Number]] - respect  | ||
|p2= type: [[String]] -   | |p2= type: [[String]] - can be one of the following:  | ||
* "sysUpdate" (internal use)  | * "sysUpdate" (internal use)  | ||
* "NONE" (no change)  | * "NONE" (no change)  | ||
| Line 34: | Line 39: | ||
* "GreatHouseDestroyed" (-0.8)  | * "GreatHouseDestroyed" (-0.8)  | ||
| [[Boolean]] - [[false]] if the manager is not initialised yet  | |r1= [[Boolean]] - [[false]] if the manager is not initialised yet  | ||
|x1= <  | |x1= <sqf>["Init"] call BIS_fnc_FTLmanager;</sqf>  | ||
| [[FriendlyToLocal System]]  | |seealso= [[FriendlyToLocal System]]  | ||
}}  | }}  | ||
Latest revision as of 15:44, 8 November 2023
Description
- Description:
 - FTL (Friendly To Local) manager tracks relationship between player and civilian side.
FTL State can be one of the following: "LOW", "NEUTRAL", "HIGH". See FriendlyToLocal System. - Execution:
 - call
 - Groups:
 - Sides
 
Syntax
- Syntax:
 - [functionCalled, type] call BIS_fnc_FTLmanager
 - Parameters:
 - functionCalled: String - one of the following:
- "Init" - initialises the FTL manager
Return: Number - FTL State - "Destroy" - destroys the current FTL manager instance
Return: - "GetFTLState" - returns current FTL state
Return: String - FTL state: "LOW", "NEUTRAL" or "HIGH" - "SetFTLState" - computes and sets the new FTLValue and FTLState afterwards
Return: - "GetNearestTownRespect" - Returns nearest (in 500m radius) town respect for player
Return: Number - respect 
 - "Init" - initialises the FTL manager
 - type: String - can be one of the following:
- "sysUpdate" (internal use)
 - "NONE" (no change)
 - "CivKilled" (-0.5)
 - "VIPCivKilled" (-0.7)
 - "RebelKilled" (-0.3)
 - "TaskSmallRefused" (-0.05)
 - "TaskSmallDone" (+0.4)
 - "TaskSmallFailed" (-0.4)
 - "TaskGreatRefused" (-0.1)
 - "TaskGreatDone" (+0.6)
 - "TaskGreatFailed" (-0.6)
 - "CivHouseDestroyed" (-0.5)
 - "GreatHouseDestroyed" (-0.8)
 
 - Return Value:
 - Boolean - false if the manager is not initialised yet
 
Examples
- Example 1:
 
Additional Information
- See also:
 - FriendlyToLocal System
 
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note