// This script returns the parent of an instance. // Requires that the global.parent variable is set // in the parent's User defined event 0. // Input values: // Argument 0: The instance ID of the instance to check for parents. global.parent = noone; with (argument0) event_user(0); return (global.parent);