CanDeployScientists
Usage
- Return a bool value to override default behavior
Example Autogenerated
csharp
private bool? CanDeployScientists( BradleyAPC instance, BaseEntity attacker, List<GameObjectRef> scientistPrefabs, List<UnityEngine.Vector3> spawnPositions )
{
Puts( "CanDeployScientists works!" );
return null;
}Location
- BradleyAPC::CanDeployScientists(BaseEntity attacker, List<GameObjectRef> scientistPrefabs, List<UnityEngine.Vector3> spawnPositions)
csharp
private bool CanDeployScientists(BaseEntity attacker, List<GameObjectRef> scientistPrefabs, List<Vector3> spawnPositions)
{
object returnvar = Interface.CallHook("CanDeployScientists", this, attacker, scientistPrefabs, spawnPositions);
if (returnvar is bool)
{
return (bool)returnvar;
}
int count = scientistPrefabs.Count;
//---