BIS fnc respect: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling - missing example) |
Lou Montana (talk | contribs) m (Fix faction link) |
||
Line 22: | Line 22: | ||
* "MODIFY" - change given respect value | * "MODIFY" - change given respect value | ||
** param1: [[Object]] - unit of which respect value will be changed | ** param1: [[Object]] - unit of which respect value will be changed | ||
** param2: [[String]] - [[ | ** param2: [[String]] - [[faction]] of which respect will be changed | ||
** param3: [[String]] - [[Code|code]] which defines formula for change (current respect value is stored in variable _r) - e.g. "_r / 2" | ** param3: [[String]] - [[Code|code]] which defines formula for change (current respect value is stored in variable _r) - e.g. "_r / 2" | ||
* "KILLED" - modify global town respect after civilian has been killed | * "KILLED" - modify global town respect after civilian has been killed |
Revision as of 15:19, 4 June 2018
Description
- Description:
- RESpect - The Effective Calculation Process.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [mode, param1, param2, param3] call BIS_fnc_respect
- Parameters:
- mode: String - case-sensitive, can be one of "SET", "ADD", "MODIFY", "KILLED"
- depending on mode:
- "SET" - set respect default values
- "ADD" - add respect values depending on global town respect
- "MODIFY" - change given respect value
- "KILLED" - modify global town respect after civilian has been killed
- Return Value:
Examples
- Example 1:
Additional Information
- See also:
- addRatingAmbient Civilians
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