About Store Forum Documentation Contact



Post Reply 
Teleport and Environment
Author Message
kreathyon Offline
Member

Post: #1
Teleport and Environment
Hello,

How to change or import new environment in world2 after téléporting in this world please ?

Thank you in advance grin
07-23-2015 06:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #2
RE: Teleport and Environment
you can get your world id with

Game.World.id()

and simply do a if(Game.World.id()==idn1){do your environement stuff}
else if(Game.World.id()==idn2){do you 2nd world environement stuff}

idk, out of my head i would do it this way, but idk if there's easier way to do it wink
07-23-2015 07:11 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Teleport and Environment
You can also use Game.World.settings().environment
07-24-2015 12:58 AM
Find all posts by this user Quote this message in a reply
kreathyon Offline
Member

Post: #4
RE: Teleport and Environment
It's good thank you RedcrowProd and Esenthel wink
07-24-2015 01:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply