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

Adding hooks to track deploy and recall of ScientistNPC by BradleyAPC. #518

Closed
wants to merge 1 commit into from

Conversation

IIIaKa
Copy link
Contributor

@IIIaKa IIIaKa commented Jul 1, 2024

Adding hooks to track deploy and recall of ScientistNPC by BradleyAPC.

object CanBradleyDeployScientists(BradleyAPC bradley, BasePlayer attacker, List<GameObjectRef> scientistPrefabs, List<Vector3> spawnPositions) - Called when attempting to deploy ScientistNPCs from BradleyAPC. Returning true or false overrides default behavior.

void OnBradleyScientistInitialized(BradleyAPC bradley, ScientistNPC scientist, Vector3 spawnPos) - Called when a ScientistNPC is deployed(spawned) from the BradleyAPC and has a target, if the target is not null. No return behavior.

void OnBradleyScientistRecalled(BradleyAPC bradley, ScientistNPC scientist) - Called when a ScientistNPC is recalled into the BradleyAPC. No return behavior.

@IIIaKa IIIaKa reopened this Jul 22, 2024
@MrBlue
Copy link
Member

MrBlue commented Jul 31, 2024

Merged with changes, thanks!

- CanDeployScientists(BradleyAPC, BaseEntity, List<GameObjectRef>, List<Vector3>)
- OnScientistInitialized(BradleyAPC, ScientistNPC, Vector3)
- OnScientistRecalled(BradleyAPC, ScientistNPC)

@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