HolographicWings / LethalSDK-Unity-Project

Unity Project using Lethal Company SDK
MIT License
43 stars 6 forks source link

Possible to have Scrap animated? #34

Closed NasbyCroco closed 11 months ago

NasbyCroco commented 11 months ago

I created my own scrap. My cubodile mascot (square crocodile)

I first tested the item with it spawning in with it scannable and its own squeak pickup and drop sound effect. Then I added a sound file that plays, similar to toy robot or chattering teeth, which works. Now when I added an animation to the cubodile scrap item it completely disappears. Doesn't load at all into the level.

So is there a specific script or prefab setup I need to animate the object? I want it to rock back and forth slightly and also a little squishing (kinda rubber hose animation like) cubo

EDIT

I found a way to animate it and it to appear in the game correctly! For what I did I created an empty game object, then applied network object and a box collider to that. Then the 3d model of the scrap as a child to that empty object. Then applied my animation to the 3d model of cubo quick video on what I did https://www.youtube.com/watch?v=_O-2vGgSsZk Also quick demo of item in action

HolographicWings commented 11 months ago

I created my own scrap. My cubodile mascot (square crocodile)

I first tested the item with it spawning in with it scannable and its own squeak pickup and drop sound effect. Then I added a sound file that plays, similar to toy robot or chattering teeth, which works. Now when I added an animation to the cubodile scrap item it completely disappears. Doesn't load at all into the level.

So is there a specific script or prefab setup I need to animate the object? I want it to rock back and forth slightly and also a little squishing (kinda rubber hose animation like) cubo

EDIT

I found a way to animate it and it to appear in the game correctly!

Yes, you can just add an animation controller to your scrap ^^