Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add & modify various AutoTurret hooks #525

Closed
wants to merge 1 commit into from

Conversation

Substrata1
Copy link
Contributor

Existing:

object OnTurretModeToggle(AutoTurret turret, BasePlayer player)
  • Called when a player attempts to toggle the turret mode
  • This has been moved, and is now a pre-hook with a player parameter
object OnTurretClearList(AutoTurret turret, BasePlayer player)
  • Called when a player attempts to clear the list of authorized players
  • Changed the Argument Behavior from JustParams, which was causing it to not pass the correct parameters, to UseArgumentString

Added:

object OnTurretSetID(AutoTurret turret, BasePlayer player, string id)
  • Called when a player attempts to set the turret's ID

- object OnTurretModeToggle(AutoTurret turret, BasePlayer player)
Called when a player attempts to toggle the turret mode
This has been moved, and is now a pre-hook with a player parameter

- object OnTurretClearList(AutoTurret turret, BasePlayer player)
Called when a player attempts to clear the list of authorized players
Changed the Argument Behavior from JustParams, which was causing it to not pass the correct parameters, to UseArgumentString

- object OnTurretSetID(AutoTurret turret, BasePlayer player, string id)
Called when a player attempts to set the turret's ID
@MrBlue
Copy link
Member

MrBlue commented Jul 31, 2024

Merged with changes, thanks!

- OnTurretIdentifierSet(AutoTurret turret, BasePlayer player, string id)

@MrBlue MrBlue closed this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants