Raised This Month: $ Target: $400
 0% 

[Solved] Problem about set model for entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
q695290484
Junior Member
Join Date: Jul 2013
Old 03-30-2014 , 00:54   [Solved] Problem about set model for entity
Reply With Quote #1

【solved】thank you
The entity I create is on the ground then I set model for it, but a half of the model is under the ground, like this(entity can move):


What can I do to solve this problem?
Here are these codes:

HTML Code:
new iEnt = create_entity("info_target")
entity_set_string(iEnt, EV_SZ_classname, "girl")
entity_set_float(iEnt, EV_FL_health, 50.0)
entity_set_model(iEnt, g_GirlModel)
entity_get_vector(id, EV_VEC_origin, flOrigin)
entity_get_vector(id, EV_VEC_angles, flAngle)
entity_set_origin(iEnt, flOrigin)
entity_set_vector(iEnt, EV_VEC_angles, flAngle)
entity_set_float(iEnt, EV_FL_takedamage, 1.0)
entity_set_int(iEnt, EV_INT_movetype, MOVETYPE_STEP)
entity_set_int(iEnt, EV_INT_solid, SOLID_BBOX)
new Float: mins[3] = {-12.0, -12.0, 0.0 }
new Float: maxs[3] = { 12.0, 12.0, 75.0 }
entity_set_size(iEnt, mins, maxs)
sorry for my bad english

Last edited by q695290484; 01-03-2022 at 22:43.
q695290484 is offline
Reply



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 05:59.


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