---
name: "setShotParents"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "1.66"
locality: {"argument": "global", "effect": "global", "server_exec": true}
source: https://community.bistudio.com/wiki/setShotParents
revid: 349182
updated: 2023-11-08T14:50:39Z
---

# setShotParents

*Command · Weapons · Arma 3 v1.66*

Locality: arguments **global** · effect **global** · **server execution only**

## Description

Sets vehicle and instigator pair for the given projectile.

## Syntax

```sqf
projectile setShotParents [vehicle, instigator]
```

**Parameters:**

- `projectile`: [Object](../topics/Object.md) - the actual projectile shot
- `vehicle`: [Object](../topics/Object.md) - vehicle shooting projectile (appears as the 'killer' in "Killed" EH)
- `instigator`: [Object](../topics/Object.md) - person pulling the trigger (appears as the 'instigator' in "Killed" EH)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
myProjectile setShotParents [vehicle bob, bob];
```

### Example 2

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

## See also

[getShotParents](../commands/getShotParents.md)

<sub>Source: [BI Community Wiki — setShotParents](https://community.bistudio.com/wiki/setShotParents) (revision 349182).</sub>
