Skip to content

Instantly share code, notes, and snippets.

@collinticer
Created July 9, 2020 05:21
Show Gist options
  • Save collinticer/0ddf9ba5ad333bf443b82bbbcb895941 to your computer and use it in GitHub Desktop.
Save collinticer/0ddf9ba5ad333bf443b82bbbcb895941 to your computer and use it in GitHub Desktop.
var instance = argument0;//instance should be a "standard_obj" with the objectProperties attribute
var dialogToAdd = argument1;//instance should be a "new_dialog"
with( instance )
{
var tmpObjProps = instance.objectProperties;
var dialogsList = tmpObjProps[? "dialogs"];
ds_list_add( dialogsList, dialogToAdd );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment