Spectating player in diff virtual world?
#1

Is it possible to spectate a player that's in a different virtual world than you?
Reply
#2

I think no. You can't see another player in another VW. That's what VW for.
If you want to spec player with different VW then you can get the player's VW and set your VW to be same.
Reply
#3

I want to have a moving camera when a player starts, so I thought of recording an NPC, putting it in the different world and make the player spectate the NPC. Is that possible?
Reply
#4

You can always get that players virtual world, save yours into a variable, and set yours to the same as the other players. When you are done spectating, you can retrieve the information from that variable for your virtual world and set it to it again.
Reply
#5

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You can always get that players virtual world, save yours into a variable, and set yours to the same as the other players. When you are done spectating, you can retrieve the information from that variable for your virtual world and set it to it again.
^ Correct, just an example :

pawn Код:
new
    pVirtualWorld[ MAX_PLAYERS ] = { 0, ... }
;

// Spectate ....

pVirtualWorld[ playerid ] = GetPlayerVirtualWorld( playerid );
SetPlayerVirtualWorld( playerid, GetPlayerVirtualWorld( targetid ) );

// End the spectate ....

SetPlayerVirtualWorld( playerid, pVirtualWorld[ playerid ] );
No idea though, how to get a NPC ID....
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)