Recent changes Random page
GAMING
Gaming
 
WoWWiki
Halopedia
FFXIclopedia
Age of Conan
Warhammer Online
Grand Theft Wiki
See more...

Osrs ob

From NWNWiki

Jump to: navigation, search

osrs_ob is a script used by OSRS when handling the OnBlocked event.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_ob
//
// purpose:
//      OnBlocked
//
/////////////////////////////////////////////////////////////////////////////

// the OSRS include file
#include "osrs_inc"

/////////////////////////////////////////////////////////////////////////////
void main()
{
    // determine what type of object is calling this script
    int iCallingClass = osrs_GetCallerEventClass(OBJECT_SELF);
    switch(iCallingClass)
    {
        case I_OSRS_EVENT_CLASS_CREATURE:
            // Creature::OnBlocked Pre-event
            if (!osrs_c_ob_pre())
            {
                return;
            }

            // Creature::OnBlocked event
            if (!osrs_c_ob())
            {
                return;
            }

            // Creature::OnBlocked post-event
            osrs_c_ob_post();

    }

}


Rate this article:
Share this article: