Files
RoT2_PRC8/src/module/nss/2_polar_party1.nss
Jaysyn904 ab2fc1d732 Added PEPS AI
Added PEPS AI.
Full compile.
Reorganized repository.
2025-07-28 12:49:34 -04:00

28 lines
645 B
Plaintext

#include "cs_misc_function"
void main()
{
//
// Move everyone within 20 meters of speaker to wp_cain waypoint (CS)
//
object oPC = GetPCSpeaker();
if (oPC != OBJECT_INVALID) {
cs_MovePartyNearbyToLocation(oPC, "wp_bearhome", 20.0);
}
/* OLD SCRIPT VERSION
object oPC = GetFirstPC();
object onPC = GetLastSpeaker();
while (GetIsPC(oPC)) {
float fDistance = GetDistanceBetween(oPC, onPC);
if (fDistance <= 30.0) {
DelayCommand(1.0,AssignCommand (oPC, JumpToObject(GetWaypointByTag("wp_cain"))));
} else {
}
oPC = GetNextPC();
};
*/
}