{"name":"get3DENEntityID","operator":null,"title":"get3DENEntityID","type":"command","url":"https://community.bistudio.com/wiki/get3DENEntityID","revid":378236,"updated":"2026-03-20T13:50:55Z","groups":["Eden Editor"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.56"}],"since":{"game":"arma3","name":"Arma 3","version":"1.56"},"arma3_since":"1.56","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns unique index of an Eden Entity. This number remains the same even after saving and loading the scenario. ´\n\n> [!NOTE]\n> Since Arma 3 v2.22 this command also returns the IDs of Eden Entities of type Object, Trigger, Group and Logic during preview.","syntaxes":[{"syntax":"get3DENEntityID entity","since":null,"effect":null,"exec":null,"params":[{"name":"entity","type":"Eden Entity or Eden ID","optional":false,"default":null,"description":null,"types":["Eden Entity","Eden ID"],"since":null,"text":"entity: Eden Entity or Eden ID"}],"returns":{"type":"Number","types":["Number"],"description":"Eden ID If ID is not available, -1 is returned","text":"Number - Eden ID If ID is not available, -1 is returned"},"form":"unary","operator":null,"left":null,"right":{"text":"entity","types":["Eden Entity","Eden ID"]}}],"examples":[{"text":"```sqf\nmyID = get3DENEntityID player;\n```","code":["myID = get3DENEntityID player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["get3DENEntity"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Eden Editor","Introduced with Arma 3 version 1.56","Scripting Commands"]}