Spectating player in diff virtual world? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spectating player in diff virtual world? (
/showthread.php?tid=267061)
Spectating player in diff virtual world? -
Outcast - 07.07.2011
Is it possible to spectate a player that's in a different virtual world than you?
Re: Spectating player in diff virtual world? -
=WoR=Varth - 07.07.2011
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.
Re: Spectating player in diff virtual world? -
Outcast - 07.07.2011
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?
Re: Spectating player in diff virtual world? -
Scenario - 07.07.2011
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.
Re: Spectating player in diff virtual world? -
Basicz - 07.07.2011
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....