Log inGet started
Package

Warrior.component

Newest version

README.md

Warrior

What the local player's body does as a warrior in Slime Arena: the walk speed on its CharacterController, the Shift dash, the left-mouse greatsword swing through game.combat.attack, being beaten and coming back on its spawn mark after Rules.RESPAWN_DELAY with Rules.INVULN_TIME of blinking invulnerability, and the blue/white/orange armour and greatsword it wears.

It needs, on the same entity: the engine's Humanoid and CharacterController (the humanoid avatar brings both) and a Vitals component. It reads the game.player.warrior input map for its two combat controls and places its armour on the humanoid's bones through game.player.dress. It is attached by game.player.bootstrap when play starts, and it only writes on the peer that owns the body.