Initial commit. Updated release archive.
This commit is contained in:
18
_module/nss/pw_area_transitn.nss
Normal file
18
_module/nss/pw_area_transitn.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
location lDestination = GetLocation(GetWaypointByTag("DST_"+GetTag(OBJECT_SELF)));
|
||||
|
||||
PlayAnimation(ANIMATION_PLACEABLE_OPEN);
|
||||
|
||||
if (GetIsObjectValid(GetMaster(oPC))) return;
|
||||
|
||||
DelayCommand(1.0, AssignCommand(oPC, JumpToLocation(lDestination)));
|
||||
DelayCommand(1.0, AssignCommand(GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oPC), JumpToLocation(lDestination)));
|
||||
DelayCommand(1.0, AssignCommand(GetAssociate(ASSOCIATE_TYPE_DOMINATED, oPC), JumpToLocation(lDestination)));
|
||||
DelayCommand(1.0, AssignCommand(GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oPC), JumpToLocation(lDestination)));
|
||||
DelayCommand(1.0, AssignCommand(GetAssociate(ASSOCIATE_TYPE_HENCHMAN, oPC), JumpToLocation(lDestination)));
|
||||
DelayCommand(1.0, AssignCommand(GetAssociate(ASSOCIATE_TYPE_SUMMONED, oPC), JumpToLocation(lDestination)));
|
||||
|
||||
DelayCommand(1.0, PlayAnimation(ANIMATION_PLACEABLE_CLOSE));
|
||||
}
|
||||
Reference in New Issue
Block a user