{"name":"set3DENAttributes","operator":null,"title":"set3DENAttributes","type":"command","url":"https://community.bistudio.com/wiki/set3DENAttributes","revid":321117,"updated":"2022-05-13T14:15:26Z","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":"Set entity attributes.\nAn attribute is identified by its `property` (`data` when it is engine-drive attribute) value in config.\nFor the list of all attributes with their properties, see Setting Attributes.\n\n> [!IMPORTANT]\n> Attributes are available only within the Eden Editor workspace and cannot be accessed in scenario preview or exported scenario!","syntaxes":[{"syntax":"set3DENAttributes [[entities1, class1, value1], [entities2, class2, value2], ...]","since":null,"effect":null,"exec":null,"params":[{"name":"entitiesN","type":"Array of Eden Entity or Eden ID","optional":false,"default":null,"description":null,"types":["Array","Eden Entity","Eden ID"],"since":null,"text":"entitiesN: Array of Eden Entity or Eden ID"},{"name":"classN","type":"String","optional":false,"default":null,"description":"attribute name","types":["String"],"since":null,"text":"classN: String - attribute name"},{"name":"valueN","type":"Anything","optional":false,"default":null,"description":"new attribute value","types":["Anything"],"since":null,"text":"valueN: 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":"unary","operator":null,"left":null,"right":{"text":"[[entities1, class1, value1], [entities2, class2, value2], ...]","types":["Array"]}}],"examples":[{"text":"```sqf\n// Set all selected objects as playable\nset3DENAttributes [[get3DENSelected \"Object\", \"ControlMP\", true]];\n```","code":["// Set all selected objects as playable\nset3DENAttributes [[get3DENSelected \"Object\", \"ControlMP\", true]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["get3DENAttribute","clear3DENAttribute"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Eden Editor","Introduced with Arma 3 version 1.56","Scripting Commands"]}