open.mp forum
[Pawn] Virtual worlds - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] Virtual worlds (/showthread.php?tid=1445)



Virtual worlds - Ryder Sixz - 2020-12-21

Hello everyone! Could someone please explain virtual worlds to me ((How are they created, what is the limit, etc.))?. I read it on the wiki but it was not entirely clear to me. I would appreciate it very much, greetings to all!


RE: Virtual worlds - Markski - 2020-12-21

There's a few key things to be kept in mind about virtual worlds:



- They're used to put players in locations which are meant to be entirely separate. For example, the "main world" (by default 0) from other interiors or special locations.

- They're not to be confused with interiors

- The limit is 2^32 (above 2 billions), so they're essentially unlimited for very much all practical purpouses.



Players who are in virtual world X can only see and interact with players who are also in virtual world X (things like chat being the obvious exception), even if they might be in the same physical map location.


RE: Virtual worlds - Ryder Sixz - 2020-12-22

(2020-12-21, 02:59 PM)Markski Wrote:

There's a few key things to be kept in mind about virtual worlds:



- They're used to put players in locations which are meant to be entirely separate. For example, the "main world" (by default 0) from other interiors or special locations.

- They're not to be confused with interiors

- The limit is 2^32 (above 2 billions), so they're essentially unlimited for very much all practical purpouses.



Players who are in virtual world X can only see and interact with players who are also in virtual world X (things like chat being the obvious exception), even if they might be in the same physical map location.





I want to create a mapping on the physical map and that in that mapping players can be in different virtual worlds, the idea is obviously that they cannot interact. Is this possible? Thank you!


RE: Virtual worlds - Pinch - 2020-12-22

Yes, just be sure to change the object's vw too (just check streamer.inc if you ain't sure what I'm talking about)


RE: Virtual worlds - Ryder Sixz - 2020-12-23

(2020-12-22, 11:49 AM)Pinch Wrote: Yes, just be sure to change the object's vw too (just check streamer.inc if you ain't sure what I'm talking about)



Understood, thank you very much!