{"name":"set3DENAttributes","title":"set3DENAttributes","type":"command","url":"https://community.bistudio.com/wiki/set3DENAttributes","revid":321117,"updated":"2022-05-13T14:15:26Z","groups":["Eden Editor"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","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], ...]","params":[{"name":"entitiesN","type":"Array of Eden Entity or Eden ID","type_expr":"Array<Eden Entity | Eden ID>"},{"name":"classN","type":"String","description":"attribute name","type_expr":"String"},{"name":"valueN","type":"Anything","description":"new attribute value","type_expr":"Anything"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if the value was set"},"form":"unary","right":{"text":"[[entities1, class1, value1], [entities2, class2, value2], ...]"}}],"examples":[{"code":["// Set all selected objects as playable\nset3DENAttributes [[get3DENSelected \"Object\", \"ControlMP\", true]];"]}],"see_also":["get3DENAttribute","clear3DENAttribute"]}