Side Relations: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) Tag: Undo |
Lou Montana (talk | contribs) (Teeny tiny page refresh, Add categories, etc.) |
||
Line 1: | Line 1: | ||
==Sides== | {{SideTOC}} | ||
{{Feature arma3 | This page deals with '''{{arma3}}''' sides, which has more than previous games. See the [[Side]] page to see previous titles' available sides. Also: | |||
* [[west]] {{=}} [[blufor]] | |||
* [[east]] {{=}} [[opfor]] | |||
* [[resistance]] {{=}} [[independent]]}} | |||
== Sides relations == | |||
=== Sides friendship === | |||
= | |||
==Sides | |||
Helper function: [[BIS_fnc_sideIsFriendly]] | Helper function: [[BIS_fnc_sideIsFriendly]] | ||
{| class="wikitable" | {| class="wikitable" style="text-align: center" | ||
! is friendly to | |||
! [[east]] | |||
! [[west]] | |||
! [[resistance]] | |||
! [[civilian]] | |||
! [[sideUnknown]] | |||
! [[sideEnemy]] | |||
! [[sideFriendly]] | |||
! [[sideLogic]] | |||
|- | |||
|- | | [[east]] | ||
| {{task/}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[west]] | ||
| {{task}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[resistance]] | ||
| {{task}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[civilian]] | ||
| {{task}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideUnknown]] | ||
| {{task}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideEnemy]] | ||
| {{task}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideFriendly]] | ||
| {{task}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideLogic]] | ||
| {{task/}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | |||
|} | |} | ||
=== | === Sides enmity === | ||
Helper function: [[BIS_fnc_sideIsEnemy]] | Helper function: [[BIS_fnc_sideIsEnemy]] | ||
{| class="wikitable" | {| class="wikitable" style="text-align: center" | ||
! is enemy to | |||
! [[east]] | |||
! [[west]] | |||
! [[resistance]] | |||
! [[civilian]] | |||
! [[sideUnknown]] | |||
! [[sideEnemy]] | |||
! [[sideFriendly]] | |||
! [[sideLogic]] | |||
|- | |||
|- | | [[east]] | ||
| {{task}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[west]] | ||
| {{task/}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[resistance]] | ||
| {{task/}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[civilian]] | ||
| {{task/}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideUnknown]] | ||
| {{task/}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideEnemy]] | ||
| {{task/}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideFriendly]] | ||
| {{task/}} | |||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |- | ||
|- | | [[sideLogic]] | ||
| {{task}} | |||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | | {{task/}} | ||
| | | {{task}} | ||
| | | {{task}} | ||
| | |||
|} | |} | ||
== Change relations == | |||
* You can set which sides [[resistance]] is friendly/enemy to in the mission editor (click on the Intel box). | |||
* Everyone is friendly toward [[civilian]]s. Civilians AI have a total impunity and can kill any enemy without retaliation (same as [[captive]] units). | |||
* You can use the [[setFriend]] command to set relations between any sides (even [[east]] and [[west]]). | |||
{{ | {{cc|will make east friendly to west and vice versa}} | ||
[[east]] [[setFriend]] <nowiki>[</nowiki>[[west]], 1]; | |||
[[west]] [[setFriend]] <nowiki>[</nowiki>[[east]], 1]; | |||
==One way hostility== | === One way hostility === | ||
Using the [[setCaptive]] command allows you to stop enemy units to fire on the target unit. | |||
_soldier [[setCaptive]] [[true]]; {{cc|_soldier can shoot at enemy but enemy will not return fire}} | |||
You can re-activate hostility by canceling captive status. | You can re-activate hostility by canceling captive status. | ||
_soldier [[setCaptive]] [[false]]; {{cc|_soldier will be shot at again by enemy units}} | |||
=== | === Two way hostility with civilians === | ||
To make a civilian a potential target to other sides, you can either: | |||
* make the civilian a renegade by using the [[addRating]] command. This will make him a [[sideEnemy|renegade]], meaning an enemy to everyone including other civilians. | |||
_civilian [[addRating]] -10000; {{cc|will cause sides to shoot civilian, but not civilian to shoot back - for that, use [[setFriend]]}} | |||
{{Informative | the [[sideEnemy|renegade]] rating threshold is ''below'' -2000 (e.g -2001, -5000 etc).}} | |||
* make the civilian [[join]] an enemy group, e.g [[east]]: | |||
[[private]] _eastGroup = [[createGroup]] [[east]]; | |||
[_civilian] [[joinSilent]] _eastGroup; | |||
=== Set in the editor === | |||
# Group your civilians with an [[east]] leader | |||
# Delete the [[east]] leader on mission load: | |||
#* Put {{Inline code|[[deleteVehicle]] [[this]]}} in the officer’s initialization field. | |||
#* Alternatively, set the '''[[Eden Editor: System#Attributes|probability of presence]]''' slider of the officer to '''zero'''. | |||
# On mission start, the [[east]] leader will not be here but the [[civilian]]s will be on the [[east]] side. | |||
[[Category: Scripting Topics]] | [[Category: Scripting Topics]] | ||
[[Category:Operation Flashpoint: Editing]] | |||
[[Category:ArmA: Editing]] | |||
[[Category:ArmA 2: Editing]] | |||
[[Category:Arma 3: Editing]] |
Revision as of 22:54, 7 September 2019
Sides relations
Sides friendship
Helper function: BIS_fnc_sideIsFriendly
Sides enmity
Helper function: BIS_fnc_sideIsEnemy
Change relations
- You can set which sides resistance is friendly/enemy to in the mission editor (click on the Intel box).
- Everyone is friendly toward civilians. Civilians AI have a total impunity and can kill any enemy without retaliation (same as captive units).
- You can use the setFriend command to set relations between any sides (even east and west).
// will make east friendly to west and vice versa east setFriend [west, 1]; west setFriend [east, 1];
One way hostility
Using the setCaptive command allows you to stop enemy units to fire on the target unit.
_soldier setCaptive true; // _soldier can shoot at enemy but enemy will not return fire
You can re-activate hostility by canceling captive status.
_soldier setCaptive false; // _soldier will be shot at again by enemy units
Two way hostility with civilians
To make a civilian a potential target to other sides, you can either:
- make the civilian a renegade by using the addRating command. This will make him a renegade, meaning an enemy to everyone including other civilians.
_civilian addRating -10000; // will cause sides to shoot civilian, but not civilian to shoot back - for that, use setFriend
private _eastGroup = createGroup east; [_civilian] joinSilent _eastGroup;
Set in the editor
- Group your civilians with an east leader
- Delete the east leader on mission load:
- Put
deleteVehicle this
in the officer’s initialization field. - Alternatively, set the probability of presence slider of the officer to zero.
- Put
- On mission start, the east leader will not be here but the civilians will be on the east side.