Crow Sentry

Type: Assembly Brain
Level: not in gallery
Pages: various
Description: This assembly has a scarecrow and a crow. When the player is within the detect zone of the scarecrow the crow will attack the player. When the player leaves the zone the crow will return to it’s perch. The crow is highlighted in blue.



  1. WHEN [started to][detect][player]
  2. …WHEN DO [iwp:Crow][objvar:target][equals][it] // tells the crow to target the player
  3. …WHEN DO [iwp:Crow][switch page][page@ Attack target]
  4. WHEN [no longer][detect][player] DO [iwp:Crow][switch page][page: @Return to Perch]


page 1 @Idle

  1. WHEN DO [highlight][blue]
  2. …WHEN DO [team][equals][team 2]
  3. …WHEN DO [vectorvar:perch position][equals][position]
  4. WHEN [page entered]
  5. …WHEN DO [forward][equals][iwp:Scarecrow][[forward]
  6. …WHEN DO [iwp:Scarecrow][attach][me]
  7. …WHEN DO [position][equals][vectorvar:perch position]

page 2 @Attack Target

  1. WHEN DO [display meter][health][max][max health][scale][0.25]
  2. WHEN DO [highlight][blue]
  3. WHEN [page entered] DO [iwp:Scarecrow][detach][me]
  4. …WHEN DO [play sound][sound:Animal Bird Wing Flaps]
  5. WHEN [duration timer][1.5]
  6. …WHEN DO [turn][toward][target]
  7. …WHEN DO [move][with flying][world up][at speed][0.05]
  8. WHEN [started to][countdown timer][1.5] DO [play sound][sound:Animal Crow Call Single]
  9. WHEN [after][countdown timer][1.5] DO [move][with flying][toward][objvar:target][center][min distance][0.75][at speed][0.5]
  10. WHEN [countdown timer][1][loop]
  11. …WHEN [distance to][objvar:target][less than or equal to][2]
  12. …/…WHEN DO [play sound][sound:Animal Crow Call Single]

page 3 @Return to Perch

  1. WHEN DO [highlight][blue]
  2. WHEN [distance to][vectorvar:perch position][greater than][0.55]
  3. …WHEN DO [move][at speed][0.55][with flying][toward][vectorvra:perch position][min distance][0]
  4. WHEN [distance to][vecotrvar:perch position][less than or equal to][0.55]
  5. …WHEN DO [switch page][page: @Idle]


For some reason they have chosen to highlight the crow in blue throughout. You can easily remove this from each page. Or you could change the color so that the highlight is say, red when it attacks, blue when it is returning and no highlight when idle.

Comments are closed.

Website Powered by

Up ↑

%d bloggers like this: