So, i basically did create something, made a sprite for it with Gimp and there are no warnings in code.
Problem is; The game does not seem to load the item i did.
Funny...
Re: Help with item coding
#2The game does not search for any new files it may be able to load. Instead it needs a reference given in the selected content package in Data/ContentPackages.
Re: Help with item coding
#3I managed to figure it out.
Also i assume the sprite source is x y, x y type?
Also i assume the sprite source is x y, x y type?
Re: Help with item coding
#4If you mean the sourcerect parameter, it's "x, y, width, height".WarlordToby wrote:I managed to figure it out.
Also i assume the sprite source is x y, x y type?
Re: Help with item coding
#6Hello guys.
Is it possible to set a contained item active if the parent item is "OnUse" or "OnActive", just asking because I made a gun and want an option to put a flashlight into the itemcontain slot and become active when I'm using the main item.
Is it possible to set a contained item active if the parent item is "OnUse" or "OnActive", just asking because I made a gun and want an option to put a flashlight into the itemcontain slot and become active when I'm using the main item.
Re: Help with item coding
#7that's impossible to do right now. you could make it possible to make gun with flashlight in fabricatorDarkPaapi wrote:Hello guys.
Is it possible to set a contained item active if the parent item is "OnUse" or "OnActive", just asking because I made a gun and want an option to put a flashlight into the itemcontain slot and become active when I'm using the main item.
check out my mod Barotrauma Erect
Re: Help with item coding
#8Thanks. Than i need to go with the Plan B. If a flashight is equipted on the guns inventory slot its turning on a light cone, just like the normal flashlight when is equipted.etet2 wrote: that's impossible to do right now. you could make it possible to make gun with flashlight in fabricator