Skip to content

Turret class ​

No description available

Functions ​

mnscript
number Turret.GetAmmo() 
  • Gets the amount of bullets in the turret
mnscript
Player Turret.GetHostileTarget() 
  • Gets the turrets hostile target
mnscript
number Turret.GetRange() 
  • Gets the range of this turret (in inches)
mnscript
number Turret.GetRPM() 
  • Gets the rounds per minute of this turrets weapon
mnscript
string Turret.GetState() 
  • Gets the turrets current state
mnscript
Player Turret.GetTrackingTarget() 
  • Gets the turrets tracking (non-hostile) target
mnscript
bool Turret.HasAmmo() 
  • Gets whether the turret has ammo or not
mnscript
bool Turret.IsAgro(Player) 
  • Gets whether the turret is agro towards a player
mnscript
bool Turret.MakeFriendly(Player) 
  • Makes the player a friendly to this turret
mnscript
bool Turret.MakeHostile(Player) 
  • Makes the player a hostile to this turret