Initial upload
Initial upload
This commit is contained in:
16
_module/nss/calc_gates.nss
Normal file
16
_module/nss/calc_gates.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
Calculate the remaining hitpoints of each gate
|
||||
Created By: Dalantriel Jul 22, 2002
|
||||
*/
|
||||
|
||||
void main()
|
||||
{
|
||||
// Set the variables
|
||||
int nTempleGate = (GetCurrentHitPoints(GetObjectByTag("TempleGate")));
|
||||
int nNorthGate = (GetCurrentHitPoints(GetObjectByTag("NorthGate")));
|
||||
int nSouthGate = (GetCurrentHitPoints(GetObjectByTag("SouthGate")));
|
||||
|
||||
SetLocalInt(OBJECT_SELF, "nTempleGateStrength", nTempleGate);
|
||||
SetLocalInt(OBJECT_SELF, "nNorthGateStrength", nNorthGate);
|
||||
SetLocalInt(OBJECT_SELF, "nSouthGateStrength", nSouthGate);
|
||||
}
|
Reference in New Issue
Block a user