BIS fnc respect: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1 = Sides | |gr1 = Sides | ||
| RESpect - The Effective Calculation Process. | | RESpect - The Effective Calculation Process. | ||
| [mode'', param1, param2, param3''] call [[BIS_fnc_respect]] | | [mode'', param1, param2, param3''] call [[BIS_fnc_respect]] | ||
|p1= mode: [[String]] - '''case-sensitive''', can be one of "SET", "ADD", "MODIFY", "KILLED" | |p1= mode: [[String]] - '''case-sensitive''', can be one of "SET", "ADD", "MODIFY", "KILLED" | ||
|p2= depending on ''mode'': | |p2= depending on ''mode'': | ||
Line 26: | Line 26: | ||
** param1: [[Object]] - killer | ** param1: [[Object]] - killer | ||
** param2: [[Object]] - town logic | ** param2: [[Object]] - town logic | ||
** param3: [[Number]] - change coefficient | ** param3: [[Number]] - change coefficient | ||
| | | | ||
Line 32: | Line 32: | ||
* "ADD": unit's respect values | * "ADD": unit's respect values | ||
* "MODIFY": modified respect value | * "MODIFY": modified respect value | ||
* "KILLED": modified town respect value | * "KILLED": modified town respect value | ||
|x1= <code></code> | |x1= <code></code> | ||
| [[addRating]], [[Ambient Civilians]] | | [[addRating]], [[Ambient Civilians]] | ||
}} | }} | ||
Revision as of 23:38, 17 January 2021
Description
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