BIS fnc respect: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[^ ]+\] (call|spawn) ('''|\[\[)BI(N|S)_fnc_[a-zA-Z0-9_]+('''|\]\]));? \| *p1 *=" to " |s1=$1 |p1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 15: | Line 15: | ||
|gr1= Sides | |gr1= Sides | ||
| RESpect - The Effective Calculation Process. | |descr= RESpect - The Effective Calculation Process. | ||
|s1=[mode | |s1= [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" | ||
Line 36: | Line 36: | ||
** 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 | ||
Line 46: | Line 46: | ||
|seealso= [[addRating]], [[Ambient Civilians]] | |seealso= [[addRating]], [[Ambient Civilians]] | ||
}} | }} | ||
Revision as of 13:54, 13 June 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
- Examples:
- Example needed
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