Quote:
|
Originally Posted by prozac424242
NPC Code:
if (created || playerenters)
{
loadmap mymap; // or whatever;
}
but how do you check for multiple events with gs2 other than this cumbersome repetition?
|
PHP Code:
function onCreated () {
doloadmap();
}
function onPlayerenters() {
doloadmap();
}
function doloadmap() {
loadmap("mymap");
}
I hope this isn't a literal example though - you only need to load the map once