Fixed camera help!

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Fixed camera help!

Post by psYco »

I just did this pic quikcly to help put across my question whitch I just cant seem to put across in words...

Image

Well here is a ''maze'' level I have planned, (the maze wont actually look anything like this) but the point im trying to ask about is, can I get the camera to go up to this point (looking down on the maze) for teh entire duration of the level? Since my game is gonna be third person itll have this perspective anyway, I just want the camera to be looking down on hte player and the map from a fixed point (like a security camera)

Now I think this can be done with sum entity that i just cant seem to find, but I was also wandering if it would be possible to ''attack'' (in the case of my game this would be ''possess'') the enemy while the camera is like this? How would the crosshair work? and then since when you go into first person when you posses your enemys would you be able to go FPS and then when you kill the guard you are possessing and return to your body, be able to go back to seeing the map from the fixed security cammera in the sky???

Thanks in advance for all the help! :D
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

I guess the entity you need is 'FixedCamera'. I have never used it so I can't tell any details of how the crosshair works. But if you find a way to "tell" a guard that he has been possessed, it's easy to switch to first person and back to fixed view when the guard dies.
The most difficult thing is to "tell" the guard about possession. In other words this means activating a trigger or damaging the guard pawn, or something similar. The guard's script would then "know" that it has been possessed and attach the camera to himself and start obeying the user, like moving when certain keyboard keys are pressed.
Pain is only psychological.
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

Thanks man im starting to understand more and more how this possesion script is gonna work.

But if any one knows a bit more detail on how i mihgt get all this to work with the fixed camera that would be great!

Thanks again everyone!
Nout
Posts: 136
Joined: Tue Jul 05, 2005 5:14 pm

Post by Nout »

Best insert a Fixed camera + change the angle properties till the camera looks to what you want to see. Set the First flag to true.

Then make a script that would look in pseudo code looks this:

If Possessed then
ChangeView(3)
else
ChangeView(1)

In the script you can also move + rotate the fixed camera by script commands (I think it's only available as of RF075B, see docs on pawn script commands)
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

cool! then I can make the camera player controlled! like you can rotate teh camera with the arrow keys!

Oh and on an unrelated note can I change the controls ''in game'' if im using a scripted player?

Ok this all sounds a bit too complicated for now so ill stick to the scripted plaer and getting the possesd thing to work first! L8r every one!

Thanks again!
:D :D :D :D
Post Reply