Fixer90
Member
After getting GMS 2, I noticed that one of the compatibility scripts (the one for instance_create) used return before its function. Here's the code for reference:
What I'm wondering is, what difference does it make? What is the difference between returning a function in a script, and just putting it there?
Code:
var d = object_get_depth(argument2);
return instance_create_depth(argument0, argument1, d, argument2);