Arma 3 Scripting

Command in Weapons

setShotParents

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets vehicle and instigator pair for the given projectile.

Syntax

projectile setShotParents [vehicle, instigator]

Parameters:

Returns: Nothing

Examples

Example 1

myProjectile setShotParents [vehicle bob, bob];

Example 2

tank addEventHandler ["Fired", {_this select 6 setShotParents [tank, commander tank]}];

See also

getShotParents