setVehicleInit: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|eff= global | |eff= global | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Attach a statement to a unit. The statement is propagated over the network in MP games, it can be executed by invoking [[processInitCommands]]. | | Attach a statement to a unit. The statement is propagated over the network in MP games, it can be executed by invoking [[processInitCommands]]. | ||
{{Feature|arma3|For security reasons, the command was disabled in Arma 3. Use [[remoteExec]] for remote execution.}} | {{Feature|arma3|For security reasons, the command was disabled in Arma 3. Use [[remoteExec]] for remote execution.}} | ||
| unitName [[setVehicleInit]] statement | | unitName [[setVehicleInit]] statement | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
|p2= statement: [[String]] | |p2= statement: [[String]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_soldier3 [[setVehicleInit]] "[[this]] [[allowFleeing]] 0";</code> | |x1= <code>_soldier3 [[setVehicleInit]] "[[this]] [[allowFleeing]] 0";</code> | ||
| [[Multiplayer Scripting]], [[Initialization Order]], [[processInitCommands]], [[clearVehicleInit]] | | [[Multiplayer Scripting]], [[Initialization Order]], [[processInitCommands]], [[clearVehicleInit]] | ||
|mp= The statement will be sent to clients connecting after the command has been executed.<br> | |mp= The statement will be sent to clients connecting after the command has been executed.<br> | ||
Note that the statement will be executed automatically by [[Multiplayer Scripting#Join In Progress|JIP]] clients before [[Init.sqs]] or its [[SQF]] counterpart has been executed. | Note that the statement will be executed automatically by [[Multiplayer Scripting#Join In Progress|JIP]] clients before [[Init.sqs]] or its [[SQF]] counterpart has been executed. |
Revision as of 11:10, 18 January 2021
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.
- 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. - Groups:
- Object Manipulation
Syntax
- Syntax:
- unitName setVehicleInit statement
- Parameters:
- unitName: Object
- statement: String
- Return Value:
- Nothing
Examples
- Example 1:
_soldier3 setVehicleInit "this allowFleeing 0";
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- 03:12, 20 March 2008 (CET)
- 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.
- Posted on May 22, 2016 - 21:38 (UTC)
- AgentRev
- remoteExec and remoteExecCall will accept an object as JIP parameter, which make them behave in a very similar way to setVehicleInit before it was disabled.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Take On Helicopters: Scripting Commands