setTowParent: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) (Add getTowParent seealso link) |
||
Line 8: | Line 8: | ||
|eff= local | |eff= local | ||
|descr= Allows | |descr= {{{!}} class="wikitable float-right align-center align-left-col-1" | ||
! Simulation | |||
{{!}} CarX | |||
{{!}} TankX | |||
{{!}} AirplaneX | |||
{{!}} BoatX | |||
{{!}}- | |||
! Towable | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}}- | |||
! Can Tow | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}}} | |||
<!-- | |||
{{{!}} class="wikitable float-right align-center-col-2 align-center-col-3" | |||
! Simulation | |||
! Towable | |||
! Can Tow | |||
{{!}}- | |||
{{!}} CarX | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}}- | |||
{{!}} TankX | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}}- | |||
{{!}} AirplaneX | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}}- | |||
{{!}} BoatX | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}}} | |||
--> | |||
Allows a vehicle to be towed by another. This loosens the towed vehicle's brakes and turns its steering wheels toward the towing vehicle. | |||
Supposed to be used together with a rope connecting both vehicles. | Supposed to be used together with a rope connecting both vehicles. | ||
|mp= {{Feature|warning| | |mp= {{Feature|warning| | ||
If a [[player]] enters the ''towingVehicle'' the ''towedVehicle'' will try to change locality to be local to | If a [[player]] enters the ''towingVehicle'' the ''towedVehicle'' will try to change locality to be local to that [[player]].<!-- | ||
This might be problematic if there is | --> This might be problematic if there is another [[player]] already in the ''towedVehicle''.<!-- | ||
It is recommended to not have anyone in the ''towedVehicle''! | --> It is recommended to not have anyone in the ''towedVehicle''! | ||
}} | }} | ||
Line 21: | Line 63: | ||
|gr2= Ropes and Sling Loading | |gr2= Ropes and Sling Loading | ||
|s1= towedVehicle [[ | |s1= towedVehicle [[setTowParent]] towingVehicle | ||
|p1= towedVehicle: [[Object]] - | |p1= towedVehicle: [[Object]] - vehicle of type CarX (no tanks, no aircrafts, no boats) | ||
|p2= towingVehicle: [[Object]] - | |p2= towingVehicle: [[Object]] - vehicle of type CarX or TankX (no aircrafts, no boats) | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf> | |x1= <sqf> | ||
{ moveOut _x } forEach crew _towedVehicle; // make sure nobody is in the towed vehicle | { moveOut _x } forEach crew _towedVehicle; // make sure nobody is in the towed vehicle | ||
_towedVehicle lock true; | _towedVehicle lock true; // make sure everybody stays out of it | ||
ropeCreate [_bobcat, [0,-5,0], _towedVehicle, [0,2,0]]; | ropeCreate [_bobcat, [0,-5,0], _towedVehicle, [0,2,0]]; | ||
_towedVehicle setTowParent _bobcat; | _towedVehicle setTowParent _bobcat; | ||
</sqf> | </sqf> | ||
|seealso= [[ropeCreate]] | |seealso= [[getTowParent]] [[ropeCreate]] | ||
}} | }} |
Revision as of 11:04, 15 February 2023
Description
- Description:
-
Simulation CarX TankX AirplaneX BoatX Towable Can Tow Allows a vehicle to be towed by another. This loosens the towed vehicle's brakes and turns its steering wheels toward the towing vehicle.
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:
Additional Information
- See also:
- getTowParent 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