Jaysyn904 e0ec0015e6 Initial upload
Initial upload
2023-09-21 20:25:34 -04:00

17 lines
555 B
Plaintext

/*
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);
}