Type: NPC brain
Level: not in gallery
Pages: 1
Description: Found in the Mining Drone Character model. A follower character that fires blue plasma balls at the enemy.When not attacking the mining drone mines (removes terrain)and produces Kodite Crystals.
Kode
- WHEN [not has power]
- …WHEN [interacted] DO [power on]
- …/…WHEN DO [objvar:target][equals][it]
- …/…WHEN DO [play fx][Block Impact]
- …/…WHEN DO [team][equals][objvar:target][team]
- WHEN [has power]
- …WHEN DO [play fx][fx:Hover Rings]
- …WHEN [countdown timer][0.5]
- …/…WHEN [duration timer][3] DO [say][text:Hello][type on speed][6]
- …/…/…WHEN [started to] DO [emote][Cheer]
- WHEN [distance to][objvar:target][less than][20][and][not][boolvar:digging] DO [move][with flying][with swimming][toward][target][position][plus][up]
- WHEN [enemies][objects closer than][2] do {objvar:my enemy][equals][it]
- …WHEN [else]
- …/…WHEN [not][objvar:target][moving]
- …/…/…WHEN [countdown timer][4]
- …/…/…/…WHEN [started to] DO [dodge][in direction][world down][at speed][0.75][distance][1]
- …/…/…/…WHEN [started to][bump terrain] DO [boolvar:digging][equals][true]
- WHEN [boolvar:digging]
- …WHEN DO [fall]
- …WHEN DO [say][text:Digging…]
- …WHEN DO [emote][Taunt]
- WHEN [not][dodging]
- …WHEN DO [play fx][fx:Spark emitter][at socket][mouth]
- …WHEN [countdown timer][7][in frames][loop] DO [subtract terrain][cylinder][height][0.8][radius][1]
- …/…WHEN DO [play fx][fx:Stone explosion][scale][0.5]
- …WHEN [countdown timer][1.5]
- …/…WHEN [(][random number][as integer][1][to][4][)][equal to][1] DO [create][Kodite Crystal][at position][position][plus][world down][multiplied by][0.25
- ../…/…WHEN DO [play sound][Voice Mining Drone Positive]
- …/…/…WHEN [else] DO [play sound][Voice Mining Drone Negative]