Type: Player Brain
Level: 2 star
Pages: 1
Description: 3rd person player brain. Distance boom camera. Player controls fireballs with the right stick. No melee ability.
Kode
- WHEN [once] DO [team][equals][team 1]
- WHEN DO [display meter][health][screen top left]
Camera settings
- WHEN DO [boom camera][distance][15][ignore camera collision][yaw][-90]
Action buttons
- WHEN [button:A][pressed] DO [jump]
- WHEN [left stick] DO [move]
Firing mechanism (Xbox)
- WHEN [right stick][without mouse remapping]
- …WHEN DO [turn][in direction][right stick]
- …WHEN DO [shoot][in direction][right stick]
Firing mechanism (PC)
- WHEN [left mouse button]
- …WHEN DO [turn][toward][left mouse world position]
- …WHEN DO [shoot][in direction][left mouse world position][minus][position]
Standard interaction kode
- WHEN [detect][interactable][objects in front]
- …WHEN DO[highlight it yellow]
- …WHEN [is using keyboard] DO [display][middle mouse button][ above ][ it]
- …WHEN[using controller][or][is using touch] DO [display][icon:B][above] [it]
- …WHEN [button B][pressed] DO [interact]
- …WHEN [else]
- …/…WHEN [button B][pressed] DO [dodge][with strafing][invulnerable]
Alterations
Change weapon to a crossbow/gun
Add as childline to line 1
WHEN DO [equip][Crossbow]
You do not need to add Crossbow bolt or bullet to lines 9 and 12 as it picks the projectile by default based on the weapon equipped.
Add melee attack
Sort of breaks the twin shooter concept, but you may want a melee option.
Add after line 4
WHEN [button:X][pressed] Do [attack]