Arma 3 Scripting

getShotInfo

  • Arma 3 v2.18

Command · Markdown · JSON · original wiki page

Description

Returns various properties for the given shot.

Syntax

Syntax 1

getShotInfo shot

Parameters:

Returns: Array with [effectiveTimeToLive, fuseDistanceLeft, timeToExplosion, triggerIsForced, shownTracer, isReal, isSubmunitionTriggered, isSetForDeletion, shotParent, shotInstigator]

Syntax 2

shot getShotInfo index

Parameters:

Returns: Anything - depends on the requested property, or Nothing

Examples

Example 1

private _shotInfo = getShotInfo shot1;

Example 2

private _fuseDistanceLeft = shot1 getShotInfo 1;

See also

getShotParents · missileTarget · triggerAmmo · getObjectType · getObjectTextures · objectParent · setVelocityTransformation · getUnitFreefallInfo · getEntityInfo · getModelInfo