Raised This Month: $ Target: $400
 0% 

Making a model solid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-07-2006 , 20:19  
Reply With Quote #2

Code:
entity_set_int(car,EV_INT_solid,SOLID_BBOX)
bbox. used for objects to cause colisions with players. also need to use entity_set_size. Example usage:
Code:
new Float:min[3] new Float:max[3] min[0]=-16.0 min[1]=-16.0 min[2]=-32.0 max[0]=16.0 max[1]=16.0 max[2]=32.0 entity_set_size(car,min,max)
that makes it -16 units large to the right (of origin) (-16 right = 16 left), 16 units large to the right,16 units large to the front, -16 units large to the front, 32 units tall, and -32 units tall. (this is the exact size of an HL player model).
Mess with sizes to figure out what u need to set your car at.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
 



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 20:22.


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