BIS fnc FTLmanager: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling - TODO: fill more :))
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
| '''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]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_FTLmanager]]; --> |= Syntax
| [functionCalled, type] call [[BIS_fnc_FTLmanager]] |= Syntax


|p1= |= Parameter 1
|p1= functionCalled: [[String]] - One of the following:
* "Init" - initialises the FTL manager<br />Return: [[Number]] - FTL State
* "Destroy" - destroys the current FTL manager instance<br />Return:
* "GetFTLState" - returns current FTL state<br />Return: [[String]] - FTL state: "LOW", "NEUTRAL" or "HIGH"
* "SetFTLState" - computes and sets the new FTLValue and FTLState afterwards<br />Return:
* "GetNearestTownRespect" - Returns nearest (in 500m radius) town respect for player<br />Return: [[Number]] - respect |= Parameter 1


| |= Return value
|p2= 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) |= Parameter 2
 
| [[Boolean]] - [[false]] if the manager is not initialised yet |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>["Init"] [[call]] [[BIS_fnc_FTLmanager]];</code> |=  
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[FriendlyToLocal System]] |= See also


}}
}}

Revision as of 21:29, 10 April 2018


Hover & click on the images for description

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:
Uncategorised

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
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:
["Init"] call BIS_fnc_FTLmanager;

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

Notes

Bottom Section