Description ​
Invoked when a turret changes a players status to friendly
Arguments ​
Turret
- The TurretPlayer
- The friendly player
Example ​
msc
using Console;
using Event;
using Peripheral;
// Registers an event listener for when a turret registers a friendly player.
// Friendly players will not be attacked by the turret no matter what.
function OnTurretFriendly(Turret trt, Player ply){
Console.WriteLine(ply.GetName().." is now friendly to the turret.");
}
Event.AddListener("TurretFriendly", "turret_friend", "OnTurretFriendly");