Trap problems with character controller
my trap has a code which will be shown below, where if the player enters the collider, they are teleported to a set Vector3, my problem is that this code is on the trap, and it wont let me access the character controller to disable it for the player to actually be teleported.
4 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/BlazeBin - bsrcnlkrkzrn
A tool for sharing your source code with the world!
im thinking of doing it in reverse, or calling the code on the player and instead of ontriggerEnter "player" OnTriggerEnter "trap" or something, if that makes sense