#Inventory syetem
1 messages · Page 1 of 1 (latest)
im doing it now
i put it in and i took down my errors but theres still 3 left in the inventoryitemdata script
Lemme see
public LootBagData lootBagData;// only put data in here if the item is a lootbag
Get rid of that line
That line is for this
Which i dont have the code for rn
Ss the error in vs
like the location
ok
it says this is where the erroes are
and look at the errors
it sars 41 42 adn 43
Umm
Please
Tell
Me
You
Put
The
Invetory item data
In a different script
You are
ik what i did wrong
stop
wait lol
i put two scripts into one 💀
lemmi fix this lmfaooo
Make sure its called ItemSlot
yeah it is
Lemme see
Sweet what is it
what one?
The one for ground item
its not in the thing u sent me
No, ill rescript it for you
kk
I remember it it’s fairly simple
k
probs the same as u
12:03
Cool
pennsylvania by chance?
Ny
LUCKKYY
But in florida for vacation
near the city/
Li
li?
Long island
Yeah its pretty nicr
u close to nyc where u live?
Some places are nice in the city
U live on a farm
Im going to my farm in Pennsylvania
im in bucks county if you've ever heard of it
I wanna just add multiplayer to my game
idk
Alr well lemme break down that error for you b4 I go
Missing namespace GroundItem
Aka it cant find the script “GroundItem”
Also you see public class class : MonoBehavior
MonoMehavior means it derives from a object
Aka its able to go on object in the hierarchy
If it doesn’t have mono behavior
Usually a mono behavior inherits functionality’s from it
which the object in the hierarchy is where the item lays
Wym what item
ground item
Oh on a item
yeh
Any item
yeah
U see the lootbag
It has the GroundItem script on it
Therefore if a player steps on it it gets added to the inventory
Also
By chance
how do i get it
Get what
i thought u said use the loot bag
mb mb
nvm nvm
aaaaaa
aaaaaaaaaaaaaaaaaa
lol
I was just giving an example of a item
Omg thank god
yeah
ayy
well sorry to break it to yah
but i got all the textures becides my character from the unity assets store
x(
Alr well
Well add all the scripts I gave you into the game
And tmrw well set them up otay?
Im going to 🛌
same
ttyt mean talk to u tomorrow
so yeah
imma gonna head to bed
gnight bro ty for the help so farrr
Np
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Yes
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Heres the updated code
GroundItem script is at the bottom
okayyy