Created
September 19, 2019 17:06
-
-
Save Nimblz/66070f78fd4781a7b3bca0c2d806015c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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