Initial commit
Initial commit [v9.7]
This commit is contained in:
31
_module/nss/cnv_move_count.nss
Normal file
31
_module/nss/cnv_move_count.nss
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oTarget;
|
||||
location lTarget;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
oTarget = GetWaypointByTag("WP_CountH");
|
||||
|
||||
lTarget = GetLocation(oTarget);
|
||||
|
||||
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
|
||||
|
||||
oTarget=GetFirstFactionMember(oPC, FALSE);
|
||||
|
||||
while (GetIsObjectValid(oTarget))
|
||||
{
|
||||
AssignCommand(oTarget, ClearAllActions());
|
||||
|
||||
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
|
||||
oTarget=GetNextFactionMember(oPC, FALSE);
|
||||
}
|
||||
|
||||
oTarget = GetObjectByTag("plazatocount");
|
||||
AssignCommand(oTarget, ActionCloseDoor(oTarget));
|
||||
SetLocked(oTarget, TRUE);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user