getactors
Gets all active Actors.
Syntax
getactors() -> {Actor}Returns
| Type | Description |
|---|---|
{Actor} | Array of active Actors |
Description
getactors returns the Actors that are currently active.
Example
local actors = getactors()
print("Total actors:", #actors)
for i, actor in ipairs(actors) do
print(i, actor:GetFullName())
endRelated Functions
run_on_actor- Run code on an actorisparallel- Check if running in parallel