Jump to content

Need help for mod cross-referencing other mod


Recommended Posts

Hi guys, I'm trying to make a mod that adds functionality to the ownership mod by making it so only building owners can use anchors and sails so boats cannot be stolen. The mod won't break, but also doesn't do anything atm besides print what i ask it to in console.


Here is the current modmain file: modmain.lua 

Edited by MF99K
update
Link to comment
Share on other sites

10 hours ago, MF99K said:

update: does anyone know if its possible to use print() to get the tags a prefab has?

You can take a look at the entity's debug string, shown in the top left when you press backspace with the entity selected (via c_select()). You also can get this string through the function inst:GetDebugString(). I don't know of any other way to list tags otherwise.

Edited by Electroely
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
 Share

×
×
  • Create New...