Aantioch_Infernum/_module/nss/escort_userdef.nss

26 lines
715 B
Plaintext
Raw Normal View History

2023-08-08 16:22:17 -04:00
//::///////////////////////////////////////////////
//:: Default: On User Defined
//:: NW_C2_DEFAULTD
//:: Copyright (c) 2002 Bioware Corp.
//:://////////////////////////////////////////////
/*
Determines the course of action to be taken
on a user defined event.
*/
//:://////////////////////////////////////////////
//:: Created By: Don Moar
//:: Created On: April 28, 2002
//:://////////////////////////////////////////////
void main()
{
int nUser = GetUserDefinedEventNumber ();
if ( nUser == 1001 ) {
object oFollow = GetLocalObject ( OBJECT_SELF, "Follow" );
if ( GetIsObjectValid(oFollow) )
{
ClearAllActions();
ActionForceFollowObject ( oFollow, 2.5 );
}
}
}