Announcement

Collapse
No announcement yet.

Passing player ID through hitting object.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Passing player ID through hitting object.

    Anyone got some tips on passing player ID of sorts for scoring a point when hitting a physics object into another player.

    Like dodgeball, hit a ball it hits a player. You get a point. Opponent was hit by player by ball.

    Same goes for hitting a player and they die as of result from say falling off a cliff.

    I was debating putting a variable in the object so when it's hit, it holds that id and when it hits a player it uses that if as the damage delt from.

    The falling off a cliff I'm not sure how to accomplish though, except a similar variable and on death (when hitting a volume trigger it uses that variable)

    Thoughts? I'd post some blue prints but hdd crash waiting on one to get my development back up
    Inphidel / Brian - Developer of Ultraball
    http://www.ultraballgame.com

    Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!
Working...
X