Skip to content

Instantly share code, notes, and snippets.

@nulleqcodes
Created October 11, 2024 16:28
Show Gist options
  • Save nulleqcodes/2f6d67a6daafdfc7b18b501f99f8dc07 to your computer and use it in GitHub Desktop.
Save nulleqcodes/2f6d67a6daafdfc7b18b501f99f8dc07 to your computer and use it in GitHub Desktop.
Wyld Land Bomb Bot
---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