Can anyone tell me how to check if an NPC has a certain script attached, say "BeggarScript", using OBSE? I tried using the "GetScript" function which returns a ref variable and then using the "GetName" function to get the name of the script but no luck... it appears GetName does not work on scripts.
ref rActorref rScriptstring_var svScriptBegin GameMode set rScript to rActor.GetScript if ( rScript ) set svScript to GetName rScript if ( svScript == "BeggarScript" ) ; Do something endif endifEnd
Keep in mind that "BeggarScript" is a Vanilla Oblivion script so I cannot modify it.