- Home /
Where is the problem?
Hi, me and my friend can't seem to get the trigger working. We want players to get through a block, and then a code activates. That works, but the code isnt activating an animation! Can you please help me, the code is:
var jumpscare : GameObject; function Start () { jumpscare.SetActiveRecursively(false); } function OnTriggerEnter(other : Collider){ jumpscare.SetActiveRecursively(true); } function OnTriggerExit(other : Collider){ jumpscare.SetActiveRecursively(false); }
Comment
Your friend already asked this question twice. Don't ask it a third time and spam the site. Add comments to the original question if you need clarification.