Jump to content

Proximity


Pencillol

Recommended Posts

I am trying to make my first proper mod and I have practiced with mini-mods like making a house, making spells and playing around with scripts. So i know a basic amount of stuff but i cannot find how to make it so that when you are near an object or person (or you have reached a quest marker) to advance to the next stage of a quest.

 

Please help a noob :unsure:

Link to comment
Share on other sites

I am trying to make my first proper mod and I have practiced with mini-mods like making a house, making spells and playing around with scripts. So i know a basic amount of stuff but i cannot find how to make it so that when you are near an object or person (or you have reached a quest marker) to advance to the next stage of a quest.

 

Please help a noob :unsure:

The methods of doing this can vary alot depending on where the marker is and various other things related to the quest. Most of them make use of getdistance player however use of this function should be limited by various conditions and other things so that it only checks when the player is in the immediate area, and only when what you want to happen should happen. Depending on the location other alternatives, like trigger zones, or Onload or Onactivate blocks can often be a better choice. Getdistance should also never be used within quest scripts or quest conditions.

 

The main reason why getdistance should be avoided, although often it can't be, is because the function is one of the most process heavy functions available, so misuse can cause significant loss in performance, or even prevent parts of other mods from functioning properly (due to the scripts running too slow).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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