Raised This Month: $ Target: $400
 0% 

Scale a model?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ajr1234
Senior Member
Join Date: Mar 2011
Location: Chicago, IL, U.S.A.
Old 07-29-2011 , 01:57   Scale a model?
Reply With Quote #1

Is there a way to scale a model in sourcemod? I found "m_fScale" but idk how to use it...

Code:
new item = CreateEntityByName("prop_physics");
DispatchKeyValue(item, "model", MDLFILE);
DispatchKeyValue(item, "glowstate", "3");
DispatchKeyValue(item, "glowrange",	"3000");
DispatchKeyValue(item, "glowrangemin",	"0");
DispatchSpawn(item);
SetEntProp(item, Prop_Send, "m_fScale", 0.85); // like this?
TeleportEntity(item, pos, NULL_VECTOR, NULL_VECTOR);
ajr1234 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode