1st person shooter

Type: Player Brain
Level: 3 star
Pages: 1
1st person camera brain set up for players with projectile weapons. Includes a crosshair in the center of the screen.

Note: This brain has a bug which causes the visual and sound effect of walking to be present when the player is not moving, and not play when the player is moving. See Phantom Footsteps Bug (Work Around).


  1. WHEN [once] DO [team][equals][team 1]
  2. …WHEN DO [can face attacker][equals][false] // stops the player from turning to face any enemy that attacks, which is pretty disconcerting in a 1st person camera view
  3. WHEN [moving] DO [camera shake][speed][2][strength][10] // creates the impression of walking
  4. WHEN DO [1st person camera]
  5. WHEN DO [display][crosshair][screen center] // puts a crosshair  (like you get with a gun sight) symbol in the center of the screen
  6. WHEN DO [display meter][health][screen top left] // players health meter
  7. WHEN [left stick] DO [move]
  8. WHEN [button:A][pressed] DO [jump]
  9. WHEN [right trigger][or][left mouse button]
  10. …WHEN DO [shoot][Crossbow bolt][at speed][50][launch frequency][20] lifetime][1.5][in direction][random vector][cone][direction][camera forward][angle][1.5][without targeting] // Fires arrows towards the crosshair (not totally accurately as it uses a random vector in a cone shape around the center point)
  11. WHEN [detect][interactable][objects in front]
  12. …WHEN DO[highlight it yellow]
  13. …WHEN [is using keyboard] DO [display][middle mouse button][ above ][ it]
  14. …WHEN[using controller][or][is using touch] DO [display][icon:B][above] [it]
  15. …WHEN [button B][pressed] DO [interact]



See the weapon
Add between 2 and 3 indented
WHEN DO[equip][Crossbow]

Reduce the frequency of arrows
This brain fires arrows like a machine gun. Not particularly realistic.
Change line 10 launch frequency to 1 (1 arrow a second)

Change so you have to press the trigger to fire, and cannot hold it down
Add [started to] at the beginning of line 9

Change the weapon to be a gun
Add between 2 and 3 indented
WHEN DO[equip][Cartoon SMG]
Change crossbow bolt to bullet in line 10

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: