AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Problem about set model for entity (https://forums.alliedmods.net/showthread.php?t=237817)

q695290484 03-30-2014 00:54

[Solved] Problem about set model for entity
 
【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):
https://forums.alliedmods.net/attach...1&d=1396154786

What can I do to solve this problem?:cry:
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


All times are GMT -4. The time now is 05:59.

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