Furthering The Mystery:
When these zombies are placed at 32,32 on level a_01 of a tiledef2 gmap'd map, they find walls everywhere.
When the exact same level is renamed so that it's no longer a tiledef or a gmap, they work fine
When the exact same level is renamed so that it's STILL A TILEDEF but NOT a gmap, they work fine!
onwall2 just won't work on a gmap! Wtf!?
Further Still:
PHP Code:
function onCreated() {
setTimer(1);
}
function onTimeOut() {
Find_A_Wall();
setTimer(1);
}
function Find_A_Wall() {
if( onwall2( player.x, player.y, 1, 1 ) )
{
player.chat = "EEK I found A Wall!";
// echo("Found a Wall");
}
else
{
player.chat = "I'd not find a Wall.";
echo("Did not found a Wall");
}
}
After 3 hours of tinkering we made the simplest possible script. It never echoes that it did not find a wall. Ever. (though Found A Wall goes off constantly...) But not even when we give it an abitrary X and Y...did Stefan just disable onwall2 and not tell any of us?