Aller au contenu

Photo

Getting the map pin text from a preset map pin


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

#1
Just a ghost

Just a ghost
  • Members
  • 146 messages
Hello there!

I am looking for a way to collect the map pin text in an area. I know how to do it for pins placed by players, but not for the pins that I placed in the areas myself. Is there any way to do that with a script?

#2
Shadooow

Shadooow
  • Members
  • 4 468 messages
There is no function for that, and waypoint-based mappins are not stored into area local var list.



However, if you will follow this rules for creating waypoints, you will be then able to manipulate with them.

- each mappin must have same tag lets say "MAPPIN"

- each mappin must have mappin note in name field too



Then you will be able to loop through all mappins in area - GetNearestObjectByTag("MAPPIN"

and also you will be able to capture their text - GetName

However only thing you will be able to do is turn them on/off - SetMapPinEnabled



NWNX corner:

- so far NWNX don't handle mappins at all