- Found in:
- Vanilla
intfunctionCountActors(KeywordapRequiredLinkedRefKeyword=NONE, KeywordapExcludeLinkedRefKeyword=NONE)Native
Description
Documentation Comment
Get the count of all instantiated Actors (across all process levels) who belong to this location.
Can optionally specify a keyword for a linkedref that they must have (apRequiredLinkedRefKeyword), and/or a linkedref keyword they must NOT have (apExcludeLinkedRefKeyword).
(Presence or absence of the keywordless linkedref cannot be checked.)
(NOTE: if you're also necessarily going to call GetActors, just do that and check its size, instead of calling this.)
Parameters
Examples
Auto-Generated Example
Keyword myKeyword__apRequiredLinkedRefKeyword
Keyword myKeyword__apExcludeLinkedRefKeyword
int returnedValue = myLocation__toCallFunctionOn.CountActors(myKeyword__apRequiredLinkedRefKeyword, myKeyword__apExcludeLinkedRefKeyword)