Pixel-Composer/scripts/instance_variable_set/instance_variable_set.gml

8 lines
255 B
Text
Raw Normal View History

function variable_instance_set_struct(object, params) {
var _keys = variable_struct_get_names(params);
2024-11-16 07:01:14 +01:00
for( var i = 0, n = array_length(_keys); i < n; i++ ) {
2024-11-21 12:07:07 +01:00
var _k = array_safe_get(_keys, i);
2024-11-16 07:01:14 +01:00
variable_instance_set(object, _k, params[$ _k]);
}
}