attachedObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= ?\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(4 intermediate revisions by the same user not shown)
Line 26: Line 26:
|r1= [[Object]]
|r1= [[Object]]


|x1= <code>_locAttachedObj = [[attachedObject]] myLocation;</code>
|x1= <sqf>_locAttachedObj = attachedObject myLocation;</sqf>


|seealso= [[attachObject]] [[attachTo]] [[attachedObjects]] [[attachedTo]] [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[lightAttachObject]], [[triggerAttachVehicle]]
|seealso= [[attachObject]] [[attachTo]] [[attachedObjects]] [[attachedTo]] [[waypointAttachVehicle]] [[waypointAttachedVehicle]] [[lightAttachObject]] [[triggerAttachVehicle]]
}}
}}

Latest revision as of 11:21, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns the object a location is attached to. If the location is unattached, then objNull is returned.
Groups:
Object Manipulation

Syntax

Syntax:
attachedObject location
Parameters:
location: Location
Return Value:
Object

Examples

Example 1:
_locAttachedObj = attachedObject myLocation;

Additional Information

See also:
attachObject attachTo attachedObjects attachedTo waypointAttachVehicle waypointAttachedVehicle lightAttachObject triggerAttachVehicle

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