UW2_PRC8/_module/nss/hgll_lvl_area_en.nss

19 lines
401 B
Plaintext
Raw Permalink Normal View History

#include "prc_inc_util"
2023-09-25 20:24:01 -04:00
void main()
{
object oPC = GetEnteringObject();
if (GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, oPC) != OBJECT_INVALID)
{
if (!GetIsDM(oPC))
{
location lWay = GetLocation(GetWaypointByTag("fky_entry_area"));//port to entry
AssignCommand(oPC, JumpToLocation(lWay));
}
}
else
{
PRCForceRest(oPC);
2023-09-25 20:24:01 -04:00
}
}