Seperate locations using the same interior.
#1

Ive added my own interiors and pickups to automatically enter when your on the pickup but if i use burgershot in two differnt spots, it goes in fine but on exit it takes me to the other location i have to other burgershot. if i go back in and out then it takes me to where i was.

Help would be appreciated.
Reply
#2

Have the different locations set you to a different virtual world. Then, when exiting, check using GetPlayerVirtualWorld(playerid) to check their world, and teleport them to the location accordingly.
Reply
#3

Quote:
Originally Posted by big comfy couch
Have the different locations set you to a different virtual world. Then, when exiting, check using GetPlayerVirtualWorld(playerid) to check their world, and teleport them to the location accordingly.
Okay so have it look like:
Код:
	if(pickupid == pizzaicon)
	{
		GetPlayerInterior(playerid);
		GetPlayerVirtualWorld(playerid);
		SetPlayerInterior(playerid, 5);
		SetPlayerPos(playerid, 373.825653,-117.270904,1001.499511);
	}
	if(pickupid == pizzaiconexit)
 	{
 		SetPlayerVirtualWorld(playerid, 0);
   	SetPlayerInterior(playerid,0);
   	SetPlayerPos(playerid, -1808.1265,945.3210,24.8906);
 	}
Reply
#4

When they pickup the pickups you want to SetPlayerVirtualWorld. Use differant worlds for each pickup.

Then when they leave check the virtual world they are leaving from and set their position to the relevant area.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)