• [Bugged?] SetModelScale()
    5 replies, posted
[URL]http://wiki.garrysmod.com/page/Entity/SetModelScale[/URL] [CODE] Description Scales the model of the entity. Arguments [URL="http://wiki.garrysmod.com/page/Category:number"]number[/URL] scale A float to scale the model by [URL="http://wiki.garrysmod.com/page/Category:number"]number[/URL] deltaTime Transition time of the scale change[/CODE] However just testing it quickly when I run Entity(555):SetModelScale(5,1) nothing happens over. Should it not grow from it's current size to a scale of 5 over a 1 second duration? Entity(555):SetModelScale(5,0) works instantly, just any transitional delay stops it from working.
Try 0.5 as delay. SetModelScale(5, 0.5)
[QUOTE=Netheous;41072433]Try 0.5 as delay. SetModelScale(5, 0.5)[/QUOTE] Nothing, no error or effect or anything. SetModelScale(5,0) works fine, (5,0.5) does nothing.
[QUOTE=Pantho;41072774]Nothing, no error or effect or anything. SetModelScale(5,0) works fine, (5,0.5) does nothing.[/QUOTE] Some weird shit happening man.
This is weird because it works on NPC's [URL="https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/autorun/properties/npc_scale.lua"]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/autorun/properties/npc_scale.lua[/URL]
[QUOTE=brandonj4;41073019]This is weird because it works on NPC's [URL]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/autorun/properties/npc_scale.lua[/URL][/QUOTE] Works on a few things, I just tried it on a few basic models and it wouldn't work. Go try SetModelScale(5,0.5) on a blue barrel.
Sorry, you need to Log In to post a reply to this thread.