setVehicleInit: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
| 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 [[BIS_fnc_MP]] for remote execution.}} | {{Feature arma3|For security reasons, the command was disabled in Arma 3. Use [[remoteExec]] or [[BIS_fnc_MP]] for remote execution.}} | ||
|= Description | |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 55: | Line 55: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dd class="notedate">Posted on May 22, 2016 - 21:38 (UTC)</dd> | <dd class="notedate">Posted on May 22, 2016 - 21:38 (UTC)</dd> | ||
<dt class="note">[[User:AgentRevolution| | <dt class="note">[[User:AgentRevolution|AgentRev]]</dt> | ||
<dd class="note"> | <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. | [[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. |
Revision as of 22:39, 22 May 2016
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:
- Uncategorised
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
- 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
- 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.