Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
19
_module/nss/hb_battle.nss
Normal file
19
_module/nss/hb_battle.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
hb_battle
|
||||
|
||||
OnHeartbeat: Forces this NPC to stay close to a waypoint named DefensePoint
|
||||
|
||||
J.D. Robertson, 2002
|
||||
*/
|
||||
#include "i_battle"
|
||||
void main()
|
||||
{
|
||||
// If too far from your defense point, run back to it
|
||||
if (InBattle() &&
|
||||
TooFarFrom("DefensePoint"))
|
||||
{
|
||||
object waypoint = GetNearestObjectByTag("DefensePoint");
|
||||
ActionDoCommand(ActionForceMoveToObject(waypoint, TRUE, IntToFloat(d6())));
|
||||
ActionDoCommand(SetFacing(GetFacing(waypoint)));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user