Changing size/scale of an entity?
I am trying to make a airdrop shrink when spawned, but I can't seem to decrease or increase the size of it. Is it not supported? It's not giving any errors when the Vector3's are positive, but since I want to shrink it, it also gives me a error "The effective box size has been forced positive and is likely to give unexpected collision geometry. If you absolutely need to use negative scaling you can use the convex MeshCollider". I can probably figure out the error myself, but I wont bother if I can't actually scale anything to begin with.

(I have little knowledge of c#, and I have just started making plugins)

Thanks!
It would only change size on the server, not the client. Clients would still see it as the original size.
Ah, that sucks. I hope they add better support for it in the future. Thanks for the answer
I'm not 100% sure this is still the case, but that's what I experienced last I tried something similar.
You can ask @ColonBlow, he know answer to your question

@TerrorNisse Well wulf if right, Technically, it will only scale on the server.

But, you can also trick the client as well. The only way i recently found to scale a item that a client will see is to actually spawn a Visualization sphere, spawn the object you want to scale, parent it to the sphere. And as the sphere lerps to its radius, it will also scale up / down the object and is visible by players. (basic idea anyway)

But, (second but), I also found, only clients who see it perform the scaling when it happens, will see it at the scaled size. if a player logs in after it scales, or are not close enough, they only see the standard scaling. 

still fun though to spawn in a 20ft tall bear. lol

not all object act right when scaled too. Such as horse, if you scale past about 3x size, the mount location is inside horse, not on top. looks funny. 

5b71186d8a9fb.png ColonBlow

@TerrorNisse Well wulf if right, Technically, it will only scale on the server.

But, you can also trick the client as well. The only way i recently found to scale a item that a client will see is to actually spawn a Visualization sphere, spawn the object you want to scale, parent it to the sphere. And as the sphere lerps to its radius, it will also scale up / down the object and is visible by players. (basic idea anyway)

But, (second but), I also found, only clients who see it perform the scaling when it happens, will see it at the scaled size. if a player logs in after it scales, or are not close enough, they only see the standard scaling. 

still fun though to spawn in a 20ft tall bear. lol

not all object act right when scaled too. Such as horse, if you scale past about 3x size, the mount location is inside horse, not on top. looks funny. 

You can do sphere lerp update (i am sure you already know that)
Mount locations and such thing must be not so big issue, right?

5b71186d8a9fb.png ColonBlow

But, (second but), I also found, only clients who see it perform the scaling when it happens, will see it at the scaled size. if a player logs in after it scales, or are not close enough, they only see the standard scaling.

Interesting.  I'm going to try oscillating the scale; have a bear constantly flip between 20x and 19.999x size.  See if that works.

Might actually look  more scary going between 20 and 21.  Some sort of blurry ass super bear wrecking everything.

Is it possible to scale effects in a similar way?

Zugzwang

Interesting.  I'm going to try oscillating the scale; have a bear constantly flip between 20x and 19.999x size.  See if that works.

Might actually look  more scary going between 20 and 21.  Some sort of blurry ass super bear wrecking everything.

Is it possible to scale effects in a similar way?

yeah, i have not tried too much more since i first noticed it worked a few weeks ago. But looping the scale very slightly might fix the issue of if player not being online/close enough to see the single scale lerp. but i can test that too. good idea.

But alot of other stuff like colliders, mount locations and other  things are not scaled at all. But you could probrably recode there locations/size after it spawns.  Like a 20x bear, you would still have a hit collider the same size as a normal bear when you attack it, which means you will never hit the 20x bear.. lol unless you can resize the collder as well, or add a new one the size wanted. 



Merged post

But, I did make a quick Shrink / Expand Ray gun out of the Garry's Mod toolgun and applied the basic concept i have above :) check out the video.