Cycling through player views
I want to cycle through the players and see what they see, when Im in spectating mode. I know Im able to do this by pressing mouse1/mouse2, but I want to automatically do this @ respawn. It has to stop at a player which I choose in a menu, so I will see what he's seeing.
So basicly it has to do this: 1) Choose player from menu (piece of cake..) 2) Respawn: cycle through players (check..) 3) Stop @ choosen player (too easy..) 4) Let me see what choosen player is seeing and stick with him / spectate him (many attempts failed...) I tried to do it with get_user_origin and setting this origin for the specator but this doesn't seem to work. |
Re: Cycling through player views
You can use attach_view, "attach_view ( player, target ) "
The target can't be a player, so you will have to create an entity that follows the player you wish to spectate. This is a my Proof of concept, and has not yet been tested, so try this out. Code:
|
Re: Cycling through player views
excuse me:
Code:
Public Follow(id){ |
Re: Cycling through player views
Ok thnx!
Btw what includes do I need? |
Re: Cycling through player views
Why do you use semicolon, whitespace and case inconsistantly ;)?
You would also have to do a bit more than set the origin, angles etc :> |
Re: Cycling through player views
well i'll test it when i get home then :)
|
Re: Cycling through player views
Watch do you know a piece of code that will work and has been tested?
|
| All times are GMT -4. The time now is 06:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.