Side Relations: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{Checkbox|yes}}" to "{{Icon|checked}}") |
Lou Montana (talk | contribs) m (Lou Montana moved page Side relations to Side Relations: Name standard) |
||
(9 intermediate revisions by 3 users 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]] | ||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
! is friendly to | ! ↓ is friendly to → | ||
! [[east]] | ! [[east]] | ||
! [[west]] | ! [[west]] | ||
Line 144: | Line 149: | ||
|} | |} | ||
=== Sides | === Sides Enmity === | ||
Helper function: [[BIS_fnc_sideIsEnemy]] | Helper function: [[BIS_fnc_sideIsEnemy]] | ||
{| class="wikitable" style="text-align: center" | {| class="wikitable" style="text-align: center" | ||
! is enemy to | ! ↓ is enemy to → | ||
! [[east]] | ! [[east]] | ||
! [[west]] | ! [[west]] | ||
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 289: | Line 294: | ||
* You can use the [[setFriend]] command to set relations between any sides (even [[east]] and [[west]]). | * You can use the [[setFriend]] command to set relations between any sides (even [[east]] and [[west]]). | ||
<sqf> | |||
// will make east friendly to west and vice versa | |||
east setFriend [west, 1]; | |||
west setFriend [east, 1]; | |||
</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. | ||
<sqf>_soldier setCaptive true; // _soldier can shoot at enemy but enemy will not return fire</sqf> | |||
You can re-activate hostility by canceling captive status. | You can re-activate hostility by canceling captive status. | ||
<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: | ||
* 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. | * 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. | ||
<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]]: | * make the civilian [[join]] an enemy group, e.g [[east]]:<sqf> | ||
private _eastGroup = createGroup east; | |||
[_civilian] joinSilent _eastGroup; | |||
</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 | #* 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.