setVehicleInit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "AgentRevolution" to "AgentRev")
 
(43 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= ofpe
|version1= 1.00


|1.00|= Game version
|game2= arma1
|eff= global |= Effects in MP
|version2= 1.00
____________________________________________________________________________________________


| Attach a statement to a unit. The statement is propagated over the network in MP games, it can be executed by invoking [[processInitCommands]].
|game3= arma2
|version3= 1.00


{{Feature arma3|For security reasons, the command was disabled in Arma 3.}}
|game4= arma2oa
|= Description
|version4= 1.50
____________________________________________________________________________________________


| unitName '''setVehicleInit''' statement |= Syntax
|game5= tkoh
|version5= 1.00


|p1= unitName: [[Object]] |= Parameter 1
|eff= global


|p2= statement: [[String]] |= Parameter 2
|gr1= Object Manipulation


| [[Nothing]] |= Return value
|descr= Attach a statement to a unit. The statement is propagated over the network in MP games, it can be executed by invoking [[processInitCommands]].
____________________________________________________________________________________________
 
|x1= <pre>_soldier3 setVehicleInit "this allowfleeing 0"</pre> |= Example 1
____________________________________________________________________________________________


| [[6thSense.eu:EG|MP editing guide]], [[processInitCommands]], [[clearVehicleInit]] |= See also
{{Feature|arma3|For security reasons, the command was disabled in Arma 3. Use [[remoteExec]] for remote execution.}}
| mp=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. |=
 
}}
|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 [[Initialisation Order]].
 
|s1= unitName [[setVehicleInit]] statement
 
|p1= unitName: [[Object]]
 
|p2= statement: [[String]]


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


|x1= <sqf>_soldier3 setVehicleInit "this allowFleeing 0";</sqf>


<dd class="notedate">
|seealso= [[Multiplayer Scripting]] [[Initialisation Order]] [[processInitCommands]] [[clearVehicleInit]]
<dt class="note">'''[[User:Crowe|Crowe]]'''
}}
<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. --[[User:Crowe|Crowe]] 03:12, 20 March 2008 (CET)


<dl class="command_description">


<dt><dt>
<dd class="notedate">03:12, 20 March 2008 (CET)</dd>
<dt class="note">[[User:Crowe|Crowe]]</dt>
<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>


<dt><dt>
<dd class="notedate">Posted on 2016-05-22 - 21:38 (UTC)</dd>
<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>


<!-- Note Section END -->
</dl>
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETVEHICLEINIT]]
[[Category:Scripting Commands OFP Elite |SETVEHICLEINIT]]
[[Category:Scripting Commands ArmA|SETVEHICLEINIT]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 23:07, 4 May 2024

Hover & click on the images for description

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.
Arma 3
For security reasons, the command was disabled in Arma 3. Use remoteExec for remote execution.
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

See also:
Multiplayer Scripting Initialisation Order processInitCommands clearVehicleInit

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.