Hello everyone
I’m having some trouble with a special collider script I’m making, what I want it to do it stop the player from going through it but let everything else go through it, so far I’ve had no luck so I have turned to you all for help.
Here is my code so far,
var collision = false;
function OnControllerColliderHit (hit : ControllerColliderHit) {
if (CharacterController.OnControllerColliderHit = true){
collision = true;
}
if (collision) {
Collision.enabled = true
}
}
If someone could point me in the right direction with this I would be grateful ![]()