Elfwhyk Posted June 1, 2009 Share Posted June 1, 2009 I was wondering since I'm too lazy to look around more if there is a way for scripting things such as getDistance to a specific type of object. For instance check if you are near any water or within a certain distance of any actors, or a certain distance from a forge...Im trying to fix MMM crafting so that you need to be near a forge to smelt items...it makes more sense. Link to comment Share on other sites More sharing options...
Vagrant0 Posted June 1, 2009 Share Posted June 1, 2009 I was wondering since I'm too lazy to look around more if there is a way for scripting things such as getDistance to a specific type of object. For instance check if you are near any water or within a certain distance of any actors, or a certain distance from a forge...Im trying to fix MMM crafting so that you need to be near a forge to smelt items...it makes more sense.Nope. Get distance requires specific references. And, usage of this function is generally not the best answer since it is one of the more performance heavy functions. The better solution would be to just place a trigger zone near all the forges which changes a variable in a script that allows the behavior when the player enters. Link to comment Share on other sites More sharing options...
Elfwhyk Posted June 1, 2009 Author Share Posted June 1, 2009 Well I made a new activatable object forge which would execute a script when activated, but soon realized that it would be a lot of menus...which isnt so bad and what I'll most likely end up doing, if you read this again I wouldn't mind possibly helping you out with your mod, let me know more about it? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.