setTowParent: Difference between revisions
Jump to navigation
Jump to search
m (Fix yet again :facepalm:) |
Lou Montana (talk | contribs) m (Text replacement - ";[ ]+ " to "; ") |
||
Line 28: | Line 28: | ||
|x1= <code>_towedVehicle [[apply]] { [[moveOut]] [[_x]] }; {{cc|Make sure no player or AI is in the vehicle}} | |x1= <code>_towedVehicle [[apply]] { [[moveOut]] [[_x]] }; {{cc|Make sure no player or AI is in the vehicle}} | ||
_towedVehicle [[lock]] [[true]]; | _towedVehicle [[lock]] [[true]]; | ||
_hemmt '''setTowParent''' _bobcat; {{cc|Set tow Parent}} | _hemmt '''setTowParent''' _bobcat; {{cc|Set tow Parent}} | ||
Example needs to be expanded with ropeCreate and ropeAttachTo later</code> | Example needs to be expanded with ropeCreate and ropeAttachTo later</code> |
Revision as of 00:55, 8 August 2021
Description
- Description:
- Allows towedVehicle to be towed by towingVehicle. This loosens the vehicle brakes of the towedVehicle and turned its steering wheels toward the towingVehicle. Supposed to be used together with a rope connecting both vehicles.
- Multiplayer:
- Groups:
- Object ManipulationRopes and Sling Loading
Syntax
- Syntax:
- towedVehicle setTowParent towingVehicle
- Parameters:
- towedVehicle: Object - Vehicle of type CarX (No tanks, no aircrafts, no boats)
- towingVehicle: Object - Vehicle of type CarX or TankX (No aircrafts, no boats)
- Return Value:
- Nothing
Examples
- Example 1:
_towedVehicle apply { moveOut _x }; // Make sure no player or AI is in the vehicle _towedVehicle lock true; _hemmt setTowParent _bobcat; // Set tow Parent Example needs to be expanded with ropeCreate and ropeAttachTo later
Additional Information
- See also:
- ropeCreate
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