Jump to content

How to start with custom made item?


Recommended Posts

I created an item and i want to start with it coz my game crash every time i activ the mod.

Is this line correct or not?

local start_inv = {Spiky_Bat}

Yeah... my item name is literally Spiky_Bat

Link to comment
Share on other sites

5 minutes ago, maganam said:

I created an item and i want to start with it coz my game crash every time i activ the mod.

Is this line correct or not?

local start_inv = {Spiky_Bat}

Yeah... my item name is literally Spiky_Bat

prefabs are referenced as strings, you'll want to change Spiky_Bat to "Spiky_Bat" with "" because atm Spiky_Bat is a pointer/variable referencing nil data which is incorrect and giving you the error.

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...