#Collision Damage

1 messages · Page 1 of 1 (latest)

inner jay
#

How can i make it so that if your moving really fast and you slam into a wall you take damage?

fierce spindle
#

Get velocity of player
If player velocity magnitude is greater or equal to X
Then take damage

#

I don’t know how to necessarily make it so where the faster you go the more damage you take

hard grotto
#
  • Overlap Box on the Player

  • List Get Count of the List<Collision Data>

  • Execution Integer Switch with a 0

  • On Failed, check an If

  • Get Velocity of the Player

  • Vector Get Magnitude the Get Velocity

  • Greater Than the speed you want, connect to the If

  • Then deal damage

  • Else do nothing