Help making "cinematic"

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.

thanks in advance

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:

maybe someone knows another approach i could take to get a similar result…

Well… a fast “hack 'n slash” implementation of this would be to attach a script to the trigger basically saying:

OnCollisionEnter(coll:Collider)
{
   if(coll.tag="player")
      StartCinematic(coll);
}

StartCinematic(coll:collider)
{
   coll.MyCameraScript.enabled = false;
   coll.MyCinematicScript.enabled = true;
}

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…

Philip

ok thanks, i’ll start with your basic script and work my way from there and i’ll have to see what i choose

:slight_smile: