Side Relations: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Lou Montana moved page Side relations to Side Relations: Name standard) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{TOC|side}} | {{TOC|side}} | ||
{{Feature | arma3 | This page deals with all '''{{arma3}}''' sides, which has more than previous games. See the [[Side]] page to see previous titles' available sides. Also: | {{Feature|arma3| | ||
This page deals with all '''{{arma3}}''' sides, which has more than previous games. See the [[Side]] page to see previous titles' available sides. | |||
Also: | |||
* [[west]] {{=}} [[blufor]] | * [[west]] {{=}} [[blufor]] | ||
* [[east]] {{=}} [[opfor]] | * [[east]] {{=}} [[opfor]] | ||
* [[resistance]] {{=}} [[independent]]}} | * [[resistance]] {{=}} [[independent]] | ||
== Sides | }} | ||
== Sides Relations == | |||
=== Sides | {{Wiki|extractionScript}} | ||
=== Sides Friendship === | |||
Helper function: [[BIS_fnc_sideIsFriendly]] | Helper function: [[BIS_fnc_sideIsFriendly]] | ||
Line 144: | Line 149: | ||
|} | |} | ||
=== Sides | === Sides Enmity === | ||
Helper function: [[BIS_fnc_sideIsEnemy]] | Helper function: [[BIS_fnc_sideIsEnemy]] | ||
Line 283: | Line 288: | ||
== Change | == Change Relations == | ||
* You can set which sides [[resistance]] is friendly/enemy to in the mission editor (click on the Intel box). | * You can set which sides [[resistance]] is friendly/enemy to in the mission editor (click on the Intel box). | ||
Line 295: | Line 300: | ||
</sqf> | </sqf> | ||
=== One | === One Way Hostility === | ||
Using the [[setCaptive]] command allows you to stop enemy units to fire on the target unit. | Using the [[setCaptive]] command allows you to stop enemy units to fire on the target unit. | ||
Line 303: | Line 308: | ||
<sqf>_soldier setCaptive false; // _soldier will be shot at again by enemy units</sqf> | <sqf>_soldier setCaptive false; // _soldier will be shot at again by enemy units</sqf> | ||
=== Two | === Two Way Hostility With Civilians === | ||
To make a civilian a potential target to other sides, you can either: | To make a civilian a potential target to other sides, you can either: | ||
Line 309: | Line 314: | ||
<sqf>_civilian addRating -10000; // this will cause sides to shoot civilian, but not civilian to shoot back - for that, use setFriend</sqf> | <sqf>_civilian addRating -10000; // this will cause sides to shoot civilian, but not civilian to shoot back - for that, use setFriend</sqf> | ||
{{Feature | | {{Feature|informative|The [[sideEnemy|renegade]] rating threshold is ''below'' -2000 (e.g -2001, -5000 etc).}} | ||
* make the civilian [[join]] an enemy group, e.g [[east]]:<sqf> | * make the civilian [[join]] an enemy group, e.g [[east]]:<sqf> | ||
Line 316: | Line 321: | ||
</sqf> | </sqf> | ||
=== Set in the | === Set in the Editor === | ||
# Group your civilians with an [[east]] leader | # Group your civilians with an [[east]] leader | ||
# Delete the [[east]] leader on mission load: | # Delete the [[east]] leader on mission load: | ||
#* Put <sqf inline> | #* Put <sqf inline>deleteVehicle this</sqf> in the officer's initialisation field. | ||
#* Alternatively, set the '''[[Eden Editor: System#Attributes|probability of presence]]''' slider of the officer to '''zero'''. | #* 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. | # 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]] |
Latest revision as of 23:38, 25 May 2023
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).
One Way Hostility
Using the setCaptive command allows you to stop enemy units to fire on the target unit.
You can re-activate hostility by canceling captive status.
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; // this will cause sides to shoot civilian, but not civilian to shoot back - for that, use setFriend
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 initialisation field.
- Alternatively, set the probability of presence slider of the officer to zero.
- On mission start, the east leader will not be here but the civilians will be on the east side.