setVehicleInit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <dd class="notedate">" to " <dt><dt> <dd class="notedate">") |
Lou Montana (talk | contribs) m (Text replacement - "AgentRevolution" to "AgentRev") |
||
(14 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
|game4= arma2oa | |game4= arma2oa | ||
|version4= 1. | |version4= 1.50 | ||
|game5= tkoh | |game5= tkoh | ||
Line 25: | Line 25: | ||
|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 [[Event Scripts#init.sqs|init.sqs]]/[[Event_Scripts#init.sqf|init.sqf]] have been executed - see [[ | Note that the statement will be executed automatically by [[Multiplayer Scripting#Join In Progress|JIP]] clients before [[Event Scripts#init.sqs|init.sqs]]/[[Event_Scripts#init.sqf|init.sqf]] have been executed - see [[Initialisation Order]]. | ||
|s1= unitName [[setVehicleInit]] statement | |s1= unitName [[setVehicleInit]] statement | ||
Line 34: | Line 34: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|seealso= [[Multiplayer Scripting]] | |x1= <sqf>_soldier3 setVehicleInit "this allowFleeing 0";</sqf> | ||
|seealso= [[Multiplayer Scripting]] [[Initialisation Order]] [[processInitCommands]] [[clearVehicleInit]] | |||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">03:12, 20 March 2008 (CET)</dd> | <dd class="notedate">03:12, 20 March 2008 (CET)</dd> | ||
Line 47: | Line 47: | ||
<dd class="note">setVehicleInit statements will be executed in the order of the unit creation time. | <dd class="note">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.</dd> | This means, the statements of units who have been placed in the editor first, will be executed first.</dd> | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2016-05-22 - 21:38 (UTC)</dd> | ||
<dt class="note">[[User: | <dt class="note">[[User:AgentRev|AgentRev]]</dt> | ||
<dd class="note">[[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.</dd> | <dd class="note">[[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.</dd> | ||
</dl> | </dl> |
Latest revision as of 23:07, 4 May 2024
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/init.sqf have been executed - see Initialisation Order. - 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
- 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 2016-05-22 - 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 Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Command Group: Object Manipulation
- Scripting Commands: Global Effect