{"name":"getEntityInfo","operator":null,"title":"getEntityInfo","type":"command","url":"https://community.bistudio.com/wiki/getEntityInfo","revid":379101,"updated":"2026-10-03T12:00:10Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns various properties for the given entity. Most properties should be checked where entity is local","syntaxes":[{"syntax":"getEntityInfo entity","since":null,"effect":null,"exec":null,"params":[{"name":"entity","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"entity: Object"}],"returns":{"type":"Array with [isMan, isAnimal, isDeadSet, deadSetTime, lastEntityCausingDamage, lastDamageTime, isUpsideDown, upsideDownTime, isStopped, canFloat, hasTerminalOpened, isWeaponholder, isWreck, isSmoking, isSetForDeletion]","types":["Array"],"description":"0 - isMan: Boolean - true if the entity is a man - 1 - isAnimal: Boolean - true if the entity is an animal - 2 - isDeadSet: Boolean - true if the entity has dead flag set. Often has the same value as !alive, but is not the same, as alive checks the total damage. - 3 - deadSetTime: Number - for how long the entity was dead - 4 - lastEntityCausingDamage: Object - objNull or the entity that last caused damage to this entity. Is not the same as the killer but could be the same. Killed entity might not have this set either. The entity does not have to be dead in order to have last entity that caused damage assigned. - 5 - lastDamageTime: Number - how long ago was lastEntityCausingDamage assigned - 6 - isUpsideDown: Boolean - true if the entity is upside down. The engine considers this to be `vectorUp ent select 2 < 0.3` - 7 - upsideDownTime: Number - how long the entity was upside down. - 8 - isStopped: Boolean - true when the entity does not need to be actively simulated. - 9 - canFloat: Boolean - true if the entity is able to float on water. - 10 - hasTerminalOpened: Boolean - true if the UAV terminal is opened for the given entity. - 11 - isWeaponholder: Boolean - true if the entity is weaponholder. - 12 - isWreck: Boolean - true if the entity is wreck. - 13 - isSmoking: Boolean - true if the entity has smoke and fire destruction effect active. - 14 - isSetForDeletion: Boolean - true if the entity was set for deletion, but is not yet removed from the simulation. Simple Object is supported. - 15 - Arma 3 v2.24 isParachute: Boolean - true if the entity is either Steerable or Non-Steerable parachute. > [!NOTE] > In multiplayer, following values update properly only when entity is local: > - lastEntityCausingDamage > - lastDamageTime > - isStopped > Other values are either static or update depending on how your client sees the entity right now. > > Timer values are never exact between clients and vary slightly depending on latency, JIP clients end up with large timer values close to game's time but get normal once associated value changes again: > - `deadSetTime` > - `lastDamageTime` > - `upsideDownTime`","text":"Array with [isMan, isAnimal, isDeadSet, deadSetTime, lastEntityCausingDamage, lastDamageTime, isUpsideDown, upsideDownTime, isStopped, canFloat, hasTerminalOpened, isWeaponholder, isWreck, isSmoking, isSetForDeletion]\n- 0 - isMan: Boolean - true if the entity is a man\n- 1 - isAnimal: Boolean - true if the entity is an animal\n- 2 - isDeadSet: Boolean - true if the entity has dead flag set. Often has the same value as !alive, but is not the same, as alive checks the total damage.\n- 3 - deadSetTime: Number - for how long the entity was dead\n- 4 - lastEntityCausingDamage: Object - objNull or the entity that last caused damage to this entity. Is not the same as the killer but could be the same. Killed entity might not have this set either. The entity does not have to be dead in order to have last entity that caused damage assigned.\n- 5 - lastDamageTime: Number - how long ago was *lastEntityCausingDamage* assigned\n- 6 - isUpsideDown: Boolean - true if the entity is upside down. The engine considers this to be `vectorUp ent select 2 < 0.3`\n- 7 - upsideDownTime: Number - how long the entity was upside down.\n- 8 - isStopped: Boolean - true when the entity does not need to be actively simulated.\n- 9 - canFloat: Boolean - true if the entity is able to float on water.\n- 10 - hasTerminalOpened: Boolean - true if the UAV terminal is opened for the given entity.\n- 11 - isWeaponholder: Boolean - true if the entity is weaponholder.\n- 12 - isWreck: Boolean - true if the entity is wreck.\n- 13 - isSmoking: Boolean - true if the entity has smoke and fire destruction effect active.\n- 14 - isSetForDeletion: Boolean - true if the entity was set for deletion, but is not yet removed from the simulation. Simple Object is supported.\n- 15 - Arma 3 v2.24 isParachute: Boolean - true if the entity is either Steerable or Non-Steerable parachute.\n\n> [!NOTE]\n> In multiplayer, following values update properly only when entity is local:\n> - lastEntityCausingDamage\n> - lastDamageTime\n> - isStopped\n> Other values are either static or update depending on how your client sees the entity right now.\n>\n> Timer values are never exact between clients and vary slightly depending on latency, JIP clients end up with large timer values close to game's time but get normal once associated value changes again:\n> - `deadSetTime`\n> - `lastDamageTime`\n> - `upsideDownTime`"},"form":"unary","operator":null,"left":null,"right":{"text":"entity","types":["Object"]}},{"syntax":"entity getEntityInfo index","since":null,"effect":null,"exec":null,"params":[{"name":"entity","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"entity: Object"},{"name":"index","type":"Number","optional":false,"default":null,"description":"property index (see main syntax)","types":["Number"],"since":null,"text":"index: Number - property index (see main syntax)"}],"returns":{"type":"Anything","types":["Anything"],"description":"depends on the requested property, or Nothing","text":"Anything - depends on the requested property, or Nothing"},"form":"binary","operator":null,"left":{"text":"entity","types":["Object"]},"right":{"text":"index","types":["Number"]}}],"examples":[{"text":"```sqf\nprivate _entityInfo = getEntityInfo ent1;\n_entityInfo params [\n    \"_isMan\",\n    \"_isAnimal\",\n    \"_isDeadSet\",\n    \"_deadSetTime\",\n    \"_lastEntityCausingDamage\",\n    \"_lastDamageTime\",\n    \"_isUpsideDown\",\n    \"_upsideDownTime\",\n    \"_isStopped\",\n    \"_canFloat\",\n    \"_hasTerminalOpened\",\n    \"_isWeaponholder\",\n    \"_isWreck\",\n    \"_isSmoking\",\n    \"_isSetForDeletion\",\n    \"_isParachute\"\n];\n```","code":["private _entityInfo = getEntityInfo ent1;\n_entityInfo params [\n\t\"_isMan\",\n\t\"_isAnimal\",\n\t\"_isDeadSet\",\n\t\"_deadSetTime\",\n\t\"_lastEntityCausingDamage\",\n\t\"_lastDamageTime\",\n\t\"_isUpsideDown\",\n\t\"_upsideDownTime\",\n\t\"_isStopped\",\n\t\"_canFloat\",\n\t\"_hasTerminalOpened\",\n\t\"_isWeaponholder\",\n\t\"_isWreck\",\n\t\"_isSmoking\",\n\t\"_isSetForDeletion\",\n\t\"_isParachute\"\n];"]},{"text":"```sqf\nprivate _isMan = ent1 getEntityInfo 0;\n```","code":["private _isMan = ent1 getEntityInfo 0;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["cursorObject","cursorTarget","createSimpleObject","getObjectType","getObjectTextures","objectParent","setVelocityTransformation","getUnitFreefallInfo","getModelInfo","getShotInfo","getRespawnVehicleInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.18","Scripting Commands"]}