Skip to content

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.List1&lt;GameObjectRef&gt; scientistPrefabs, System.Collections.Generic.List1<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;
//---

Released under the MIT License.