CanDeployScientists
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanDeployScientists( BradleyAPC instance, BaseEntity attacker, List`1 scientistPrefabs, List`1 spawnPositions )
{
Puts( "CanDeployScientists works!" );
}
Location
- BradleyAPC::CanDeployScientists(BaseEntity attacker, System.Collections.Generic.List
1<GameObjectRef> scientistPrefabs, System.Collections.Generic.List
1<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;
//---