BIS fnc respect: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma2 | | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |gr1= Sides | ||
|p1= mode: [[String]] - '''case-sensitive''', can be one of "SET", "ADD", "MODIFY", "KILLED" | |descr= RESpect - The Effective Calculation Process. | ||
|s1= [mode, param1, param2, param3] call [[BIS_fnc_respect]] | |||
|p1= mode: [[String]] - '''case-sensitive''', can be one of "SET", "ADD", "MODIFY", "KILLED" | |||
|p2= depending on ''mode'': | |p2= depending on ''mode'': | ||
Line 29: | Line 34: | ||
** param1: [[Object]] - killer | ** param1: [[Object]] - killer | ||
** param2: [[Object]] - town logic | ** param2: [[Object]] - town logic | ||
** param3: [[Number]] - change coefficient | ** param3: [[Number]] - change coefficient | ||
| | |r1= | ||
* "SET": [[Array]] with zero respect values (if [[Object]] is passed as argument, 1 is on place of object's faction) | * "SET": [[Array]] with zero respect values (if [[Object]] is passed as argument, 1 is on place of object's faction) | ||
* "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= | |x1= | ||
| [[addRating]] | |seealso= [[addRating]] [[Ambient Civilians]] | ||
}} | }} | ||
Latest revision as of 12:58, 1 July 2022
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
- Examples:
- Example needed
Additional Information
- See also:
- addRating Ambient 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