Jump to content

Function : Crafting recipe only possible at specific locations


Asilar

Recommended Posts

Hi,

 

What it does

When you call the function, it checks where the player is and compare it to specific coordinates you set up. It returns a boolean.

 

What for ?

 

This function main purpose is to check if the player is where you want to allow him/her to craft a defined recipe.

 

Can I use it in my own mod ?

We share the code for the coders community, feel free to use ! But please leave the credits.

 

How I use it ?

All is explained in the .lua file with the credits in the first lines. If you have trouble using it, feel free to ask here or in PM.

The coords you set up are the global coords of the world map (not the local coords of the cell you are in).

 

Who coded that ?

This one is my own code, debugged by Yossitaru !

 

Other credits

No other credits this time.

Location_Condition_to_craft.lua

Edited by Asilar
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...