setTowParent: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{RV|type=command |game1= arma3dev |version1= 2.06 |arg= global |eff= local |descr= Allows ''towedVehicle'' to be towed by ''towingVehicle''. This loosens the vehicle bra...") |
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3 |branch= dev |version1= 2.06" to " |game1= arma3 |version1= 2.06") |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|game1= | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
Line 26: | Line 25: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= | |x1= <code>{ [[moveOut]] [[_x]]; } [[forEach]] [[crew]] _towedVehicle; {{cc|Make sure nobody is in the towed vehicle}} | ||
_towedVehicle [[lock]] [[true]]; | |||
_towedVehicle [[setTowParent]] _bobcat;</code> | |||
{{Wiki|TODO|Example needs to be expanded with [[ropeCreate]] and [[ropeAttachTo]].}} | |||
|x2= | |x2= |
Revision as of 19:25, 5 October 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:
{ moveOut _x; } forEach crew _towedVehicle; // Make sure nobody is in the towed vehicle _towedVehicle lock true; _towedVehicle setTowParent _bobcat;
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