Created
October 11, 2024 16:28
-
-
Save nulleqcodes/2f6d67a6daafdfc7b18b501f99f8dc07 to your computer and use it in GitHub Desktop.
Wyld Land Bomb Bot
This file contains hidden or 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
| ---mobdefinition_Bomb Bot--- | |
| Prefab :: bombbot | |
| Range Behavior :: [[Melee Ranged]] | |
| Abilities :: | |
| Bounding Box :: 0 0.3 1.0 1.0 | |
| Speed :: 1000 | |
| Options :: nodeathsmoke | |
| ---script_bombbot_Monster--- | |
| if is_undefined(scriptVars["didDie"]) { | |
| scriptVars["didDie"] = false | |
| } | |
| if !scriptVars["didDie"] && isDead { | |
| log("BOMB DIED") | |
| useAbilityAtPosition(myEntityId, "Bomb", entityPosition(myEntityId)) | |
| scriptVars["didDie"] = true | |
| } else if !isDead { | |
| if distToEntity(myEntityId, closestEnemyEntityId(myEntityId)) < 1.5 { | |
| useAbilityAtPosition(myEntityId, "Bomb", entityPosition(myEntityId)) | |
| scriptVars["didDie"] = true | |
| killEntity(myEntityId) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment