setVehicleInit

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00Effects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Attach a statement to a unit. The statement is propagated over the network in MP games, it can be executed by invoking processInitCommands.

Syntax

Syntax:
Unit setVehicleInit "statement"
Parameters:
Vehicle: Object
statement: String
Return Value:
Nothing

Examples

Example 1:
_soldier3 setVehicleInit "this allowfleeing 0"

Additional Information

Multiplayer:
The statement will be sent to clients connecting after the command has been executed. Note that the statement will be executed automatically by JIP clients before Init.sqs or its SQF counterpart has been executed.
See also:
processInitCommands

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes


Crowe
Setvehicleinit statements will be executed in the order of the unit creation time. This means, the statements of units who have been placed in the editor first, will be executed first. --Crowe 03:12, 20 March 2008 (CET)


Bottom Section

Personal tools
Buy ArmA now!