[Tutorial] Virtual world and interior system explanation
#1

Virtual world
and
interior system


NOTE: This tutorial is a sequel/prequel to the Coordinate-system-explanation


1. Interiors - what are they?
Interiors are basically a different VIEW towards the default GTA. You remain in the same world, but you cannot see the world, although you can still feel it.

Interior 0 => The default GTA world
Interior 1 to infinite => The same GTA world, but different view.




How are they useful?

The default GTA SA world objects are only visible in INTERIOR 1
BUT
Script-added objects are visible in ALL interiors, thus making it possible to create different worlds, creating different custom interiors. There are endless ways to utilize the interior's, but that gets even better with virtual worlds.

Also, vehicles exist in all interiors as they are, but they're invisible in every other interior except the one that they're created in (This can be solved by linking the vehicle to interior)


2. Virtual worlds - what are they?

Virtual worlds are completely different worlds, although with the SAME point of view (The point of view can be altered with the help of interiors). Objects remain same throughout all the virtual worlds, but the same cannot be said for vehicles.
Vehicles must be in the same virtual world as the player who wants to see them in order to be visible (SetVehicleVirtualWorld)
This can be used for creating RACES (wouldn't want to get rammed by non-racers while you're racing, would you?), but that's just one idea, there are endless possibilities to what you can do with these 2!

P.S: I know that this tutorial is not very informative, but I think it explains the basic concept of what virtual worlds and interiors are, and what they can be used for


Conclusion

This concludes with 3 type's of data of LOCATION for EACH player



In simpler words, if all these 3 are utilized in an innovative and efficient way, you can create a number of dimensions (Although virtual worlds are limited to 2,147,483,647, and there's no limit mentioned to interiors but I guess there is one)

Quote:
Originally Posted by BigETI
View Post
Coordinates and interior IDs are basicly GTA SA game engine inbuild features. Interior IDs just changes the way the game engine renders the scenes, still the collision calculations remain the same. Virtual worlds are a feature from SA:MP to change the way how players stream players, vehicles, pickups etc. so basicly someone in the 1st virtual world won't see someone in the 2nd virtual world even, if they are almost at the same position, since the server only streams players, vehicles and pickups, if the virtual worlds equals the entity uses. Virtual worlds can't be manipulated using cheating engines.
Reply
#2

Coordinates and interior IDs are basicly GTA SA game engine inbuild features. Interior IDs just changes the way the game engine renders the scenes, still the collision calculations remain the same. Virtual worlds are a feature from SA:MP to change the way how players stream players, vehicles, pickups etc. so basicly someone in the 1st virtual world won't see someone in the 2nd virtual world even, if they are almost at the same position, since the server only streams players, vehicles and pickups, if the virtual worlds equals the entity uses. Virtual worlds can't be manipulated using cheating engines.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)