OnTurretAssign
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTurretAssign( AutoTurret instance, ulong num, BasePlayer player )
{
Puts( "OnTurretAssign works!" );
}
Location
- AutoTurret::AssignToFriend(BaseEntity/RPCMessage msg)
csharp
//---
ulong num = msg.read.UInt64();
if (num == 0uL || this.IsAuthed(num))
{
return;
}
if (Interface.CallHook("OnTurretAssign", this, num, msg.player) != null)
{
return;
}
string username = BasePlayer.SanitizePlayerNameString(msg.read.String(256, false), num);
PlayerNameID playerNameID = new PlayerNameID();
//---