get3DENParent: Difference between revisions

From Bohemia Interactive Community
m (2.16 -> 2.18)
m (Added true data types)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.18
|version1= 2.18
|branch= dev


|gr1= Eden Editor
|gr1= Eden Editor


|descr= Obtain the provided entity's parent.
|descr= Obtains the provided entity's parent.


|s1= [[get3DENParent]] entity
|s1= [[get3DENParent]] entity


|p1= entity: [[Object]]  
|p1= entity: [[Object]], [[Group]], [[Array]], [[Number]], [[String]] - [[Eden Entity]]


|r1= [[Object]]
|r1= [[Object]], [[Array]], [[Number]] - Returns [[Eden Entity]] or the [[Eden ID]] representing it. -1 for system layers such as ''BLUFOR'', ''OPFOR'' etc.


|x1= <sqf>private _parent = get3DENParent _myObject;</sqf>
|x1= <sqf>private _parent = get3DENParent _myObject;</sqf>

Latest revision as of 18:33, 9 December 2024

Hover & click on the images for description

Description

Description:
Obtains the provided entity's parent.
Groups:
Eden Editor

Syntax

Syntax:
get3DENParent entity
Parameters:
entity: Object, Group, Array, Number, String - Eden Entity
Return Value:
Object, Array, Number - Returns Eden Entity or the Eden ID representing it. -1 for system layers such as BLUFOR, OPFOR etc.

Examples

Example 1:
private _parent = get3DENParent _myObject;

Additional Information

See also:
create3DENEntity delete3DENEntities

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