DorsalAxe Posted June 9, 2012 Share Posted June 9, 2012 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 More sharing options...
gasti89 Posted June 10, 2012 Share Posted June 10, 2012 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 More sharing options...
DorsalAxe Posted June 10, 2012 Author Share Posted June 10, 2012 Thanks! It's working exactly how I wanted it. Your help is much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts