setShotParents

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.66
  Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the networkThis scripting command must be executed on the server to work properly in multiplayer

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.66

Description

Description:
Sets vehicle and instigator pair for the given projectile.

Syntax

Syntax:
projectile setShotParents [vehicle, instigator]
Parameters:
projectile: Object - the actual projectile shot
[vehicle, instigator]: Array
vehicle: Object - Vehicle shooting projectile
instigator: Object - Person pulling the trigger
Return Value:
Nothing

Examples

Example 1:
myProjectile setShotParents [vehicle bob, bob];
Example 2:
tank addEventHandler ["Fired", {_this select 6 setShotParents [tank, commander tank]];

Additional Information

Multiplayer:
-
See also:
getShotParents

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Bottom Section