Aller au contenu

Photo

Basic World Map Scripting


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
FergusM

FergusM
  • Members
  • 460 messages
I've found the wiki pages a little unhelpful and have been unable to locate exactly what I need in singleplayer.

So I have a map working, can activate the pins and so forth, but I don't know how to do actual area transitions.

I'm guessing I need some sort of event catching script that takes what the player has clicked on on the map and handles the travel from one area to another. Is there any example code I can look at for this, either in single player or just on here? Any general pointers as to what needs to happen and where this event catching needs to go?

Finally, how do I enable the World Map button? I call SetWorldMapGuiStatus(WM_GUI_STATUS_USE); but it is still not enabled.

EDIT: Okay, it seems my first question is answered in the Map Tutorial wiki page, but I'm still curious about the world map button.

Modifié par FergusM, 01 juillet 2010 - 11:07 .


#2
ITSSEXYTIME

ITSSEXYTIME
  • Members
  • 1 201 messages
If I remember correctly scripting isn't required for this. It's all done in the toolset. (You set the area tag and the waypoint tag on the map pin itself)

If you mean enabling the world map button in the area, that's done through the Variables area on the area properties.  One of the options is enable world map or some such and you just set it to "1" instead of "0".

Modifié par ITSSEXYTIME, 02 juillet 2010 - 05:30 .