I made a visual script so I can pickup objects but I need to add to inventory and destroy them in the scene(weapons,ammunitions etc.
leaving untouched the other stuff).
What happens is the first person controller when I press ‘E’, pickups everything eccept the Axe.
It’s obliviosly easy, but maybe my knowledge is missing something about this metod to divide objects in pickup-able and not.
hmm…your description is very vague, so it is difficult to determine what you need. Can you elaborate more?
“What happens is the first person controller when I press ‘E’, pickups everything eccept the Axe.”
-What do you mean by everything? Do you mean all actors, or all your special pickupable actors?
-Are all pickup-able actors children of the same parent “master pickup-able” class? If so you could just add a boolean variable to that determine if something is pickable and then set it on placement or spawn for individual subclasses.
-Where are you having trouble? Do you WANT that axe to be picked up and it isnt? Or is that working ok but you are having trouble destroying them in the scene? Please describe which part you are having trouble with–that way we can help more.
It doesn’t pickup objects at the same time. The axe is the one weapon I inserted in the scene, for example, I try to pickup it: the axe remain, but the table disappear like any other object I interact to.
I created a Masterclass, but as a struct(name, description etc.).
The game allows to show the hands also if there’s no weapon, infact I’m trying to making the hands disappear when the weapon isn’t in the inventory or we deselect it(I know just the basics, I still have to programm the inventory).
Then… I don’t know if it should be the problem: the meshes(hands and axe) are very small, infact I tryed to resize all in Maya, but It didn’t help me so much, instead it created more errors, so now I’ve to rig, skin, uv mapping and animate again for the 4th time!
That’s all to say: I’ve to resize all because the skeletal meshes are too small: no physical interactions then…
Should it be the problem?
Sorry the double post, I just want to notify Black’.
“What happens is the first person controller when I press ‘E’, pickups everything eccept the Axe.”
It doesn’t pickup objects at the same time. The axe is the one weapon I inserted in the scene, for example, I try to pickup it: the axe remain, but the table disappear like any other object I interact to.
I created a Masterclass, but as a struct(name, description etc.).
The game allows to show the hands also if there’s no weapon, infact I’m trying to making the hands disappear when the weapon isn’t in the inventory or we deselect it(I know just the basics, I still have to programm the inventory).
Then… I don’t know if it should be the problem: the meshes(hands and axe) are very small, infact I tryed to resize all in Maya, but It didn’t help me so much, instead it created more errors, so now I’ve to rig, skin, uv mapping and animate again for the 4th time!
That’s all to say: I’ve to resize all because the skeletal meshes are too small: no physical interactions then…
Should it be the problem?