Jump to content

Help - Triggerable map marker


DorsalAxe

Recommended Posts

I'm trying to create a map marker that only appears for discovery when the player enters a particular cell. However I'm really unsure how to go about this. I've tried using a trigger box with a script that simply detects the player, and it certainly detects the player correctly. But when connected to a map marker, the marker is always enabled, regardless of the trigger box. I'm not particularly interested in scripting much beyond this, and I'm guessing I've screwed up somewhere, so would anyone be able to give me some pointers?
Link to comment
Share on other sites

So you're saying that you want to show a location on the map only when you discover another location?

 

If yes, i thought about this:

 

- set the map maker to initially disabled (so you won't trigger the location by entering it)

 

- the in the triggerbox you created write

myMarker.Enable()
myMarker.AddToMap()

 

Don't forget to set an ObjectReference property pointing to the map marker.

 

If you don't want to prevent the player from discovering the location before entering the trigger, you can skip the initially disabled and the enable() part.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...