Alangara_PRC8/_module/nss/dh_skygge_vand2.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

30 lines
733 B
Plaintext

void main()
{
object oPlayer = GetEnteringObject();
if (GetIsObjectValid(oPlayer) == FALSE)
return;
string sWPStart;
string sWPSlut;
sWPStart = "TAB_WP_SKYGGE_START_006";
sWPSlut = "TAB_WP_SKYGGE_SLUT_006";
if (Random(2) != 0)
return;
object oWPStart = GetNearestObjectByTag(sWPStart);
object oWPSlut = GetNearestObjectByTag(sWPSlut);
if (GetIsObjectValid(oWPStart) == FALSE)
return;
if (GetIsObjectValid(oWPSlut) == FALSE)
return;
object oSkygge = CreateObject(OBJECT_TYPE_CREATURE, "tab_skygge_run", GetLocation(oWPStart));
AssignCommand(oSkygge, ActionForceMoveToObject(oWPSlut, TRUE));
DelayCommand(2.0, DestroyObject(oSkygge));
}