{"name":"set3DENMissionAttributes","operator":null,"title":"set3DENMissionAttributes","type":"command","url":"https://community.bistudio.com/wiki/set3DENMissionAttributes","revid":364856,"updated":"2024-06-25T09:27:10Z","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 scenario attributes.\nAn attribute is identified by its `property` (`data` when it is an engine-driven attribute) value in config.\nFor the list of all attributes with their properties, see Mission 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":"set3DENMissionAttributes [[section1, class1, value1], ...]","since":null,"effect":null,"exec":null,"params":[{"name":"sectionN","type":"String","optional":false,"default":null,"description":"attribute section. See Sections & Properties","types":["String"],"since":null,"text":"sectionN: String - attribute section. See Sections & Properties"},{"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":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[[section1, class1, value1], ...]","types":["Array"]}}],"examples":[{"text":"```sqf\n// set respawn type to 3 and respawn delay to 10 seconds\nset3DENMissionAttributes [[\"Multiplayer\", \"respawn\", 3], [\"Multiplayer\", \"respawnDelay\", 10]];\n```","code":["// set respawn type to 3 and respawn delay to 10 seconds\nset3DENMissionAttributes [[\"Multiplayer\", \"respawn\", 3], [\"Multiplayer\", \"respawnDelay\", 10]];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["get3DENMissionAttribute","set3DENMissionAttribute"],"notes":[{"user":"R3vo","date":"2019-01-02T12:09:00Z","text":"Usually, the attributes value can be received by \n\n```sqf\n_sectionName get3DENMissionAttribute _attributeName; // See example above\n```\n\nHowever, if the attribute was not changed and it is default value is used get3DENMissionAttribute might return Nothing, even though in Eden Editor the attribute has got a value. In that case the attribute's config name is not identical to the 'property' or 'data' config value. To get the right values in these cases one has to do:\n\n```sqf\n_sectionName get3DENMissionAttribute _propertyName;\n// or\n_sectionName get3DENMissionAttribute _dataName;\n```"}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Eden Editor","Introduced with Arma 3 version 1.56","Scripting Commands"]}