getTowParent: Difference between revisions

From Bohemia Interactive Community
mNo edit summary
m (Some wiki formatting)
 
Line 17: Line 17:
|r1= [[Object]] - the object towing the provided object - [[objNull]] if not towed
|r1= [[Object]] - the object towing the provided object - [[objNull]] if not towed


|x1= <sqf>private _towParent = getTowParent _towedvehicle;</sqf>
|x1= <sqf>private _towParent = getTowParent _towedVehicle;</sqf>


|seealso= [[setTowParent]]
|seealso= [[setTowParent]]
}}
}}

Latest revision as of 19:39, 19 January 2026

Hover & click on the images for description

Description

Description:
Get the vehicle towing the provided one.
Groups:
PhysXRopes and Sling Loading

Syntax

Syntax:
getTowParent towedVehicle
Parameters:
towedVehicle: Object - the towed vehicle
Return Value:
Object - the object towing the provided object - objNull if not towed

Examples

Example 1:
private _towParent = getTowParent _towedVehicle;

Additional Information

See also:
setTowParent

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note