objectParent: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example)
(Version changed)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3dev |= Game name
| arma3|= Game name


|1.49|= Game version
|1.50|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:19, 26 August 2015

Hover & click on the images for description

Description

Description:
Returns parent of an object if the object is proxy, otherwise objNull. In case of backpack, the parent is a weaponholder or a cargo space of a vehicle or the unit carrying it. Unit in a vehicle will return the vehicle as parent.

objectParent.jpg
Groups:
Uncategorised

Syntax

Syntax:
objectParent object
Parameters:
object: Object
Return Value:
Object

Examples

Example 1:
_weaponholder = objectParent _mybackpack;
Example 2:
Create and place created backpack in front of player:_backpackContainer = "B_TacticalPack_rgr" createVehicle [0,0,0]; _weaponHolder = objectParent _backpackContainer; _weaponHolder setPos (player modelToWorld [0,5,0]);

Additional Information

See also:
backpackContainerunitBackpackbackpackbackpackCargogetBackpackCargobackpackItemsaddBackpackaddBackpackCargoaddBackpackCargoGlobalremoveBackpackclearBackpackCargoclearBackpackCargoGlobalclearAllItemsFromBackpackloadBackpackbackpackSpaceForcanAddItemToBackpackaddItemToBackpackremoveItemFromBackpackeveryBackpack

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

Notes

Bottom Section