Login
OFPEC RSS
Username:
Password:
Not a member yet?
Register for free!
Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
›
COMREF
›
A
›
attachedTo
attachedTo
obj
Operand types
obj
:
Object
Type of returned value
Object
Description
Returns the object it is attached to.
Returns
objNull
if not attached to anything.
obj:
Object
- child object (as in object that is attached to something)
Return value is the
Object
that the child object is attached to.
Used In
Arma3
Example
loon1 attachTo [(_tanks select (random _tankCount))];
while {alive (attachedTo loon1)} do {
sleep 1;
loon1 sideChat "Tank is OK.";
};
if (isNull attachedTo _obj1) then {hint "_obj1 is not attached to anything."};
Search OFPEC COMREF
Types
Arrays
Scripting Topics
BIS Functions
Arma2 CfgVehicles
Arma2 Weapons
ArmA CfgVehicles
ArmA Weapons
OFP CfgVehicles
OFP Weapons
- Select Game -
List All
Arma3 Only
Arma2:OA Only
Arma2 Only
ArmA Only
Elite
Original OFP
- Select Group -
objects
units
groups
vehicles
weapons
arrays
items
backpacks
buldozer
mines
uniforms
vests
tasks
locations
artillery
configs
UAVs
briefings
mission flow
sites
map
draw
leaderboards
markers
environment
game
dialogs
displays
namespaces
radio
channels
FSM
diagnostics
firing from vehicles
slingload
advanced flight model
DLC
weapon stabilization
suppression
waypoints
cutscenes
sound
mathematics
variables
script commands
multiplayer
Zeus
3D editor
3D draw
Top of page