I wouldn't be asking for a sample project if it was as easy to reproduce
oSmallSlime Create event:
friendly = 4;
Test code:
var s = live_snippet_create(@' var slime = instance_create_layer(0, 0, "Instances", oSmallSlime); show_debug_message(["slime", slime, slime.object_index, object_get_name(slime.object_index)]); show_debug_message(["friendly", slime.friendly]); show_message(slime.friendly); slime.friendly = false; return slime; '); if (live_snippet_call(s)) { var slime = live_result; show_debug_message(["slime", slime, slime.object_index, object_get_name(slime.object_index)]); show_debug_message(["friendly", slime.friendly]); } else show_debug_message(live_result);
Output:
[ "slime",100003,3,"oSmallSlime" ] [ "friendly",4 ] [ "slime",100003,3,"oSmallSlime" ] [ "friendly",0 ]
(unless I fixed this in 1.0.27 without noticing)