Author Topic: Getting the map pin text from a preset map pin  (Read 662 times)

Legacy_Just a ghost

  • Full Member
  • ***
  • Posts: 244
  • Karma: +0/-0
Getting the map pin text from a preset map pin
« on: July 24, 2010, 10:32:21 am »


               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?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Getting the map pin text from a preset map pin
« Reply #1 on: July 24, 2010, 12:46:24 pm »


               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