Original Post
Hey all,
In Unity 3D you can call any function from another object with a function like:
gameObject.SendMessage ("ApplyDamage", 5.0);
This would be very useful for me, however I don't know how to make variant parameters. Cause in Unity you can specify whatever you want in the parameters like:
gameObject.SendMessage ("ApplyDamage", 5.0, 12, "hit!", object );
Any way to do this in angelscript? Or maybe fake it?
Another question, how long until we have shared module variables? So we could do it like with functions say:
import int timer from "mymodule"
Cheers
In Unity 3D you can call any function from another object with a function like:
gameObject.SendMessage ("ApplyDamage", 5.0);
This would be very useful for me, however I don't know how to make variant parameters. Cause in Unity you can specify whatever you want in the parameters like:
gameObject.SendMessage ("ApplyDamage", 5.0, 12, "hit!", object );
Any way to do this in angelscript? Or maybe fake it?
Another question, how long until we have shared module variables? So we could do it like with functions say:
import int timer from "mymodule"
Cheers