CanAssignMission
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanAssignMission( BasePlayer assignee, BaseMission mission, IMissionProvider provider )
{
Puts( "CanAssignMission works!" );
}
Location
- BaseMission::AssignMission(BasePlayer assignee, IMissionProvider provider, BaseMission mission)
csharp
//---
}
if (!mission.IsEligableForMission(assignee, provider))
{
return false;
}
object returnvar = Interface.CallHook("CanAssignMission", assignee, mission, provider);
if (returnvar is bool)
{
return (bool)returnvar;
}
IReadOnlyList<BaseMission.MissionInstance> arg_62_0 = assignee.missions;
//---