BIS fnc FTLmanager: Difference between revisions
| Lou Montana (talk | contribs) m (Text replacement - "    " to "   ") | m (Text replacement - "|gr1 =" to "|gr1=") | ||
| Line 5: | Line 5: | ||
| |1.00 | |1.00 | ||
| |gr1 = Sides | |gr1= Sides | ||
| | '''FTL''' ('''F'''riendly '''T'''o '''L'''ocal) manager tracks relationship between player and civilian side.<br> | | '''FTL''' ('''F'''riendly '''T'''o '''L'''ocal) manager tracks relationship between player and civilian side.<br> | ||
Revision as of 17:56, 1 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Sides
Syntax
- Syntax:
- Syntax needed
- 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:
- Return value needed
Examples
- Example 1:
- ["Init"] call BIS_fnc_FTLmanager;
Additional Information
- See also:
- See also needed
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
