Check for collider being a player here?

qpjakewaggqpqpjakewaggqp Posts: 34Member
In vp_ItemPickUp in the onTriggerEnter method there are a bunch of if statements however there is a TODO at the bottom that says, "check for collider being a player here? otherwise it will scan for inventory on all floors on spawn". How do I accomplish this? The method starts as "... onTriggerEnter(Collider col)". And I'm not entirely sure on how to make it check for the collider to be the player. Thanks a lot!


Sign In or Register to comment.