Skip to content

Instantly share code, notes, and snippets.

@Nimblz
Created September 19, 2019 17:06
Show Gist options
  • Save Nimblz/66070f78fd4781a7b3bca0c2d806015c to your computer and use it in GitHub Desktop.
Save Nimblz/66070f78fd4781a7b3bca0c2d806015c to your computer and use it in GitHub Desktop.
{
awake = {
enter = function()
return "idle"
end,
step = function()
end,
},
idle = {
enter = function()
end,
step = function()
local character = findCharacterNear(entity, actorStats.aggroRadius)
if character then
return "chase", character
end
end,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment