Aerisetta
Active member
I'm making a character that will drop his weapon if he falls. Im looking for some advice on how to structure it
HERO - player with sword
HERO_MELEE - player without sword (this is a weapon character)
Spawn as player (holding the sword)
If player is hit without fall, continue as HERO
If player is hit and falls
- player equips weapon HERO_MELEE
- player spawns item SWORD
- player is now HERO_MELEE
If player goes to SWORD item and picks it up, he becomes HERO again
Do you think this is a good setup?
How do i switch from HERO to MELEE? Using a script? Use during fall animation?
HERO - player with sword
HERO_MELEE - player without sword (this is a weapon character)
Spawn as player (holding the sword)
If player is hit without fall, continue as HERO
If player is hit and falls
- player equips weapon HERO_MELEE
- player spawns item SWORD
- player is now HERO_MELEE
If player goes to SWORD item and picks it up, he becomes HERO again
Do you think this is a good setup?
How do i switch from HERO to MELEE? Using a script? Use during fall animation?