Description ​
Invoked when a Turret engages (attacks) a Player.
Arguments ​
Turret
- The Turret which attacked the playerPlayer
- The Player who was attacked
Example ​
msc
using Console;
using Event;
using Peripheral;
// Registers an event listener for when a turret engages a player.
function OnTurretEngaged(Turret trt, Player ply){
Console.WriteLine("A turret has attacked "..ply.GetName());
}
Event.AddListener("TurretEngaged", "turret_engage", "OnTurretEngaged");