Help with Virtualworld for houses.
#1

Hy everyone. Who can help me learn to use virtualworld to make more houses with same interior. Thank you all.
Reply
#2

Depends on the house system. If the houses have an actual id, you can set players virtual world to that id.
When they want to exit again, you can retrieve the house id by using GetPlayerVirtualWorld to set them to the right exit.
Reply
#3

I don't know if the houses have an actual id. I didn't know nothing about virtual world and how i can use this system. Please, someone can help me?

PS : Sorry for my bad english.
Reply
#4

I read some topics about virtualworld, but I can't found the answer of my problem. So can help me someone? Sorry for double post.
Reply
#5

On the /enter there might be a line like this -
for(new i = 0; i < sizeof(Houses); i++)

then when he enters just add SetPlayerVirtualWorld(playerid,i);
and when he exits, set the virtualworld back to 0 by setting his vir world to i means that his virtual world will be the houses ID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)