Quote:
Originally Posted by Crow
That's actually a quite interesting question. I rarely use any timeouts in level npcs, so I don't even know what would happen if you would put it inside onCreated(). It might aswell just be called once and stop when the player leaves the level. I'm completely unsure about this one though. If we assume smashing it into onCreated() works equally as well as putting it into onPlayerEnters(), I don't think there are any efficiency differences.
|
I'll let you guys figure that one out, in the meantime I have more questions.
How about this script? If placed in a level it would put the imagepart at the selected location, correct? Would there be any unexpected behavior (this is why I need a place to test

)
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.x = 48.5;
this.y = 18.5;
setimgpart("lampanimation.gif", 0, 0, 20, 36);
}