BIS fnc FTLmanager: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "<code> *(\^+\]) +\[\[call\]\] +\[\[(BIS_fnc_[a-zA-Z0-9_]+)\]\];? *<\/code>" to "<sqf>$1 call $2;</sqf>") | Lou Montana (talk | contribs)  m (Text replacement - " |s1=[" to " |s1= [") | ||
| Line 15: | Line 15: | ||
| '''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]]. | ||
| |s1=[functionCalled, type] call [[BIS_fnc_FTLmanager]] | |s1= [functionCalled, type] call [[BIS_fnc_FTLmanager]] | ||
| |p1= functionCalled: [[String]] - One of the following: | |p1= functionCalled: [[String]] - One of the following: | ||
Revision as of 23:11, 12 July 2022
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
 
	

