Been searching the forums and only found 1 reference to it with no answer given.
I'm trying to apply a SYSEVENT_ENTERED_AREA on an item control script so that when players walk within range of a camp fire it triggers something.
At the moment from what i can see its doing the while loop and waiting for an even but at the end of the wait there is no event received even though a player has walked within the range defined.
Is there a specific reason why SYSEVENT_ENTERED_AREA doesn't appear to work on items or am i doing something wrong?
Code: Select all
program townflamecontrol( item )
EnableEvents( SYSEVENT_ENTEREDAREA, 4 );
var ev;
while( item )
ev := os::wait_for_event( 10 );
if( ev )
if( ev.type == SYSEVENT_ENTEREDAREA )
SendQuestArrowEx( ev.source, -1, -1 );
endif
endif
endwhile
return 1;
endprogram