{"name":"set3DENAttribute","operator":null,"title":"set3DENAttribute","type":"command","url":"https://community.bistudio.com/wiki/set3DENAttribute","revid":348910,"updated":"2023-11-08T14:40:02Z","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":"Sets one of entity attributes. For the list of all attributes with their properties see Setting Attributes.\n\n> [!IMPORTANT]\n> Attributes are available only within the Eden Editor workspace. You cannot access them in scenario preview or exported scenario!","syntaxes":[{"syntax":"entity set3DENAttribute [class, value]","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"},{"name":"class","type":"String","optional":false,"default":null,"description":"attribute name","types":["String"],"since":null,"text":"class: String - attribute name"},{"name":"value","type":"Anything","optional":false,"default":null,"description":"new attribute value","types":["Anything"],"since":null,"text":"value: Anything - new attribute value"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true If the value was set","text":"Boolean - true If the value was set"},"form":"binary","operator":null,"left":{"text":"entity","types":["Eden Entity","Eden ID"]},"right":{"text":"[class, value]","types":["Array"]}}],"examples":[{"text":"```sqf\nplayer set3DENAttribute [\"allowDamage\", false]; // Mark player as invincible\n```","code":["player set3DENAttribute [\"allowDamage\", false]; // Mark player as invincible"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["set3DENAttributes","get3DENAttribute"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Eden Editor","Introduced with Arma 3 version 1.56","Scripting Commands"]}