Method GetObjectsInTrigger
GetObjectsInTrigger<T>()
Gets all objects of the given type that are currently in this trigger.
public IEnumerable<T> GetObjectsInTrigger<T>() where T : NwGameObject
Returns
- IEnumerable<T>
An enumerable containing all objects currently in the trigger.
Type Parameters
TThe type of objects to return.
GetObjectsInTrigger(ObjectTypes)
Gets all objects of the given types that are currently in this trigger.
public IEnumerable<NwGameObject> GetObjectsInTrigger(ObjectTypes objectTypes = ObjectTypes.All)
Parameters
objectTypesObjectTypesThe types of object to return.
Returns
- IEnumerable<NwGameObject>
An enumerable containing all objects currently in the trigger.