Understanding POL source
Posted: Tue Oct 27, 2015 11:27 am
Hey,
I am still trying to understand POL source code. I have found this:
Basically, if the NPC has an AI (ex != NULL) the event is sent to the script and true is returned. If not, false is returned but what "Bscript::BObject bo( event )" does?
I am still trying to understand POL source code. I have found this:
Code: Select all
bool NPC::send_event( Bscript::BObjectImp* event )
{
if (ex != NULL)
{
if (ex->os_module->signal_event( event ))
return true;
}
Bscript::BObject bo( event );
return false;
}