What i’m after is when i walk through a specific trigger i want the player to loose controll of the FPS controller, so they cant move or move the camera around. And during that time, an animation will controll the controller, for example walk around etc.
I’m very new to scripting so i havent got a clue on how to do this, and if you guys think there might me an easier way to do this then what i described, then please go ahead.
you can use a static Messenger class to send a trigger message and make some other components listen to it.
For the cinematic sequence, I know Unity has Editor API to let you build a tool to tweak the timeline, I remember Serious Games developers build their own tools for this purpose. Nevertheless, I have not thought of how to build that kind of tool inside Unity. D:
I just wrote that code on the fly… so it won’t probably work asap…
Then, for moving the player along a set course for the cinematic, you could just set an animation, or use some scripts from the Unify wiki…
Obviously, if you wanted to build something really efficient and, code-wise, robust, I’d suggest you to implement a messenger system like the one explained on a blog post here: technology.blurst.com and then use this to pass messages regarding triggers…