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

15 lines
435 B
Plaintext

void main()
{
object oUser =GetLastUsedBy();
//Gets tag of object and adds _WP to it
object oToJumpTo=GetWaypointByTag(GetTag(OBJECT_SELF)+"_WP");
location lLocation=GetLocation(oToJumpTo);
//creates darkness on player
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,SupernaturalEffect(EffectDarkness()),oUser,10.0);
//teleport player to location
AssignCommand(oUser, ActionJumpToLocation(lLocation));
}