HoS_PRC8/_mod/_module/nss/cg_create_ass.nss

15 lines
479 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
// Create Assassin
void main()
{
object oSpawn=GetWaypointByTag("ASS_SPAWN");
object oAss;
string sRes=GetLocalString(GetPCSpeaker(),"sCGAss");
int nTarget=GetLocalInt(OBJECT_SELF,"nMAGEASST");
oAss=CreateObject(OBJECT_TYPE_CREATURE,sRes,GetLocation(oSpawn));
SetLocalObject(GetPCSpeaker(),"oCGAssassin",oAss);
SetLocalInt(oAss,"nSpeed",8);
SetLocalInt(oAss,"nTarget",nTarget);
SetAILevel(oAss,AI_LEVEL_NORMAL);
ExecuteScript("cg_assassin",oAss);
}