Used to execute arbitrary logic involving a specific unit in combat. Unit targeted combat functions are used in:
states.*1.effectsPerIncrement.*2.functionsPerUnit.functionsTargeted
*1: state key*2: reaction indexunitGroups.functions field under scenario steps, scenario state reactions, reinforcement configs and other similar contextsdestructionFunctionsThe signature is void Run (PersistentEntity unitPersistent).
No general description available
Vector3 offsetfloat radiusfloat exponentbool dispersedDataBlockIntegrityDamage integrity (nullable)DataBlockFloat concussion (nullable)DataBlockFloat heat (nullable)DataBlockFloat stagger (nullable)DataBlockInflictedStatusBuildup statusBuildup (nullable)DataBlockFloat crash (nullable)DataBlockScenarioSubcheckUnit targetCheck (nullable)List<ICombatFunctionTargeted> functionsOnHit (nullable)bool impactUnitSelfbool impactUnitAlliesbool impactUnitHostilesbool impactUnitCompositesbool impactProjectilesbool impactPropsstring fxDetonation (nullable)float fxDetonationScalestring fxArea (nullable)string fxHit (nullable)string audioDetonation (nullable)!CombatAreaOfEffect
offset:
x: 0
y: 0
z: 0
radius: 10
exponent: 2
dispersed: true
integrity:
normalized: false
leveled: false
f: 0
concussion:
f: 0
heat:
f: 0
stagger:
f: 0
statusBuildup:
key: ''
amount: 1
crash:
f: 0
targetCheck:
exportCountToMemory:
key: combat_sc_targets_present
exportEntitiesToBlackboard:
key: tgt
indexed: false
tags:
'': false
name:
nameInternal: ''
faction:
key: Phantoms
state:
unitActive:
present: false
unitMobile:
present: false
unitHidden:
present: false
unitWrecked:
present: false
unitDisabled:
present: false
pilotMissing:
present: false
pilotDead:
present: false
pilotConcussed:
present: false
pilotActive:
present: false
actionPlanned:
key: ''
actionCount:
i: 0
targetUnit:
nameInternal: ''
targetPosition:
position:
x: 0
y: 0
z: 0
radius: 0
targetVisibleModes:
- Simulating
targetVisibleStateValues:
'': false
locationOccupied:
present: false
locationOccupiedUnlinked:
locationSourceName: ''
locationSource: State
occupied:
present: false
distance:
check: Less
value: 0
relativeTransform:
origin:
type: None
name: ''
center: true
modifiersDirectional: false
modifiers: []
directionOriginRotation:
x: 0
y: 0
z: 0
directionDot:
check: Less
value: 0
directionDotFlat:
check: Less
value: 0
directionAngle:
check: Less
value: 0
distance:
socketStatSource: ''
range:
x: 0
y: 0
blueprints:
'': false
classes:
'': false
stats:
'':
check: Less
value: 0
statsNormalized:
'':
check: Less
value: 0
actionsInProgress:
'': false
functions: []
functionsOnHit: []
impactUnitSelf: true
impactUnitAllies: true
impactUnitHostiles: true
impactUnitComposites: true
impactProjectiles: false
impactProps: true
fxDetonation: ''
fxDetonationScale: 1
fxArea: ''
fxHit: ''
audioDetonation: ''
No general description available
Vector3 offsetstring audio (nullable)float delayScaled!CombatAudioEvent
offset:
x: 0
y: 0
z: 0
audio: ''
delayScaled: 0
No general description available
string statKey (nullable)string audioSyncKey (nullable)Vector2 inputRangeVector2 outputRange!CombatAudioSyncFromStat
statKey: ''
audioSyncKey: ''
inputRange:
x: 0
y: 1
outputRange:
x: 0
y: 1
No general description available
bool discardExistingList<DataBlockScenarioUnitChangeAction> actions (nullable)!CombatUnitActionsCreate
discardExisting: true
actions:
- key: ''
startTime: 0
startTimeIsLocal: true
locked: false
durationVariable:
f: 0
targetLocal:
grounded: false
groundOffset: 0
target:
type: None
name: ''
center: true
modifiersDirectional: false
modifiers: []
targetSecondary:
eased: false
mode: Linear
midpointOffsetLocal:
x: 0
y: 0
z: 0
type: None
name: ''
center: true
modifiersDirectional: false
modifiers: []
targetUnitFiltered:
average: false
directional: false
relative: false
filter:
exportCountToMemory:
exportEntitiesToBlackboard:
tags:
name:
faction:
state:
actionPlanned:
locationOccupied:
locationOccupiedUnlinked:
relativeTransform:
blueprints:
classes:
stats:
statsNormalized:
actionsInProgress:
functions:
targetUnitLocalOffsets:
eased: false
linear: true
from:
x: 0
y: 0
z: 0
to:
x: 0
y: 0
z: 0
movementCustom:
align: true
raycast: true
raycastDrop: false
raycastOffset: 0
raycastPitch: 90
functionsTimed:
- timeNormalized: 0
repeat:
timeNormalizedEnd: 0.05
count: 1
functions: []
functionsOnAction: []
No general description available
bool lockedbool primarybool secondary!CombatUnitActionsDiscard
locked: true
primary: true
secondary: true
No general description available
float startTimefloat durationVector3 positionVector3 rotationbool applyInverseImmediately!CombatUnitAnimateCompositeTransform
startTime: 0
duration: 0
position:
x: 0
y: 0
z: 0
rotation:
x: 0
y: 0
z: 0
applyInverseImmediately: false
No general description available
float startTimefloat durationbool targetSecondary!CombatUnitAnimateCompositeTransformToBlueprint
startTime: 0
duration: 0
targetSecondary: false
No general description available
string behaviourName (nullable)!CombatUnitBehaviorChange
behaviourName: ''
No general description available
string key (nullable)!CombatUnitBlackboardSet
key: ''
No general description available
bool aibool player!CombatUnitControlChange
ai: true
player: false
No general description available
!CombatUnitCrash {}
No general description available
float delaybool splashbool dispersedbool sourceInternalDataBlockIntegrityDamage integrity (nullable)DataBlockFloat concussion (nullable)DataBlockFloat heat (nullable)DataBlockFloat stagger (nullable)DataBlockInflictedStatusBuildup statusBuildup (nullable)!CombatUnitDamageEvent
delay: 0
splash: true
dispersed: true
sourceInternal: true
integrity:
normalized: false
leveled: false
f: 0
concussion:
f: 0
heat:
f: 0
stagger:
f: 0
statusBuildup:
key: ''
amount: 1
Allows delaying a function
bool unscaledfloat delayMinfloat delayMaxint repeatsICombatFunctionTargeted function (nullable)!CombatUnitDelay
unscaled: false
delayMin: 0
delayMax: 0
repeats: 1
function: !CombatUnitScrambleGuidance
fxKey: fx_thruster_flash
offset:
x: 0
y: 0
z: 0
Allows delaying a group of functions
bool unscaledfloat delayMinfloat delayMaxint repeatsList<ICombatFunctionTargeted> functions (nullable)!CombatUnitDelayGroup
unscaled: false
delayMin: 0
delayMax: 0
repeats: 1
functions: []
No general description available
TargetFromSource target (nullable)!CombatUnitDestinationChange
target:
type: None
name: ''
center: true
modifiersDirectional: false
modifiers: []
No general description available
!CombatUnitDestroy {}
No general description available
HashSet<string> sockets (nullable)
DataMultiLinkerPartSocket database key!CombatUnitDestroyParts
sockets:
- ''
No general description available
Vector3 positionVector3 rotationDataBlockAsset asset (nullable)!CombatUnitEffectSpawn
position:
x: 0
y: 0
z: 0
rotation:
x: 0
y: 0
z: 0
asset:
key: ''
scale:
x: 1
y: 1
z: 1
No general description available
Vector3 positionVector3 rotationDataBlockAsset asset (nullable)List<EffectSequenceEntry> sequence (nullable)!CombatUnitEffectSpawnSequence
position:
x: 0
y: 0
z: 0
rotation:
x: 0
y: 0
z: 0
asset:
key: ''
scale:
x: 1
y: 1
z: 1
sequence:
- delay: 0
position:
x: 0
y: 0
z: 0
rotation:
x: 0
y: 0
z: 0
No general description available
float chanceICombatFunctionTargeted function (nullable)!CombatUnitFunctionChance
chance: 0.5
function: !CombatUnitScrambleGuidance
fxKey: fx_thruster_flash
offset:
x: 0
y: 0
z: 0
No general description available
string key (nullable)ICombatFunctionTargeted function (nullable)!CombatUnitFunctionChanceFromDifficulty
key: ''
function: !CombatUnitScrambleGuidance
fxKey: fx_thruster_flash
offset:
x: 0
y: 0
z: 0
No general description available
float chanceList<ICombatFunctionTargeted> functions (nullable)!CombatUnitFunctionChanceGroup
chance: 0.5
functions: []
No general description available
DataBlockScenarioSubcheckUnit unitCheck (nullable)List<ICombatFunctionTargeted> functions (nullable)List<ICombatFunctionTargeted> functionsElse (nullable)!CombatUnitFunctionsChecked
unitCheck:
exportCountToMemory:
key: combat_sc_targets_present
exportEntitiesToBlackboard:
key: tgt
indexed: false
tags:
'': false
name:
nameInternal: ''
faction:
key: Phantoms
state:
unitActive:
present: false
unitMobile:
present: false
unitHidden:
present: false
unitWrecked:
present: false
unitDisabled:
present: false
pilotMissing:
present: false
pilotDead:
present: false
pilotConcussed:
present: false
pilotActive:
present: false
actionPlanned:
key: ''
actionCount:
i: 0
targetUnit:
nameInternal: ''
targetPosition:
position:
x: 0
y: 0
z: 0
radius: 0
targetVisibleModes:
- Simulating
targetVisibleStateValues:
'': false
locationOccupied:
present: false
locationOccupiedUnlinked:
locationSourceName: ''
locationSource: State
occupied:
present: false
distance:
check: Less
value: 0
relativeTransform:
origin:
type: None
name: ''
center: true
modifiersDirectional: false
modifiers: []
directionOriginRotation:
x: 0
y: 0
z: 0
directionDot:
check: Less
value: 0
directionDotFlat:
check: Less
value: 0
directionAngle:
check: Less
value: 0
distance:
socketStatSource: ''
range:
x: 0
y: 0
blueprints:
'': false
classes:
'': false
stats:
'':
check: Less
value: 0
statsNormalized:
'':
check: Less
value: 0
actionsInProgress:
'': false
functions: []
functions: []
functionsElse: []
No general description available
float valuebool offsetHashSet<string> sockets (nullable)
DataMultiLinkerPartSocket database key!CombatUnitIntegrityChange
value: 0
offset: false
sockets:
- ''
No general description available
!CombatUnitPilotConcuss {}
No general description available
!CombatUnitPilotEject {}
No general description available
float limit!CombatUnitPredictionLimit
limit: 1
No general description available
!CombatUnitRetreat {}
No general description available
string fxKey (nullable)
DataMultiLinkerAssetPools database keyVector3 offset!CombatUnitScrambleGuidance
fxKey: ''
offset:
x: 0
y: 0
z: 0
No general description available
float angle!CombatUnitSetAnimOverridePitch
angle: 0
No general description available
string key (nullable)
DataMultiLinkerOverworldMemory database keyUnitMemoryContext contextValueOperation operationResolverMode resolverModeList<ICombatUnitValueResolver> resolvers (nullable)!CombatUnitSetMemory
key: ''
context: MobileBase
operation: Set
resolverMode: Random
resolvers: []
No general description available
Mode modefloat speed!CombatUnitSetSpeed
mode: Set
speed: 5
No general description available
Mode modefloat speed!CombatUnitSetSpeedRotationPrimary
mode: Set
speed: 0.5
No general description available
string key (nullable)
DataMultiLinkerUnitStats database keyMode modefloat valuebool refreshFullStats!CombatUnitSetStatMultiplier
key: ''
mode: Set
value: 5
refreshFullStats: false
No general description available
bool untargetable!CombatUnitSetUntargetable
untargetable: false
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database keyfloat durationOverride!CombatUnitStatusAdd
key: ''
durationOverride: -1
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database keystring stat (nullable)
DataMultiLinkerUnitStats database key!CombatUnitStatusAddFromStat
key: ''
stat: ''
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database keyfloat valueUnitStatusSource source!CombatUnitStatusBuildup
key: ''
value: 0
source: Function
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database key!CombatUnitStatusCountdownReset
key: ''
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database keyValueOperation operationfloat value!CombatUnitStatusDuration
key: ''
operation: Set
value: 0
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database key!CombatUnitStatusDurationReset
key: ''
No general description available
string key (nullable)
DataMultiLinkerUnitStatus database keyint limitstring fxAudio (nullable)!CombatUnitStatusRemove
key: ''
limit: 1
fxAudio: ''
No general description available
HashSet<string> keys (nullable)
DataMultiLinkerUnitStatus database keyint limitstring fxAudio (nullable)!CombatUnitStatusRemoveGroup
keys:
- ''
limit: 1
fxAudio: ''
No general description available
SortedDictionary<string,bool> tagChanges (nullable)!CombatUnitTagChange
tagChanges:
'': false
No general description available
string unitKey (nullable)List<ICombatFunctionTargeted> functionsTargeted (nullable)!CombatUnitTargetCompositeConnected
unitKey: ''
functionsTargeted: []
No general description available
string message (nullable)!Log
message: ''