Odd Entity Problem
I'm displaying an unmoving model in 3d space at some coordinates I load from MySQL.
When I pass the coordinates thusly, it displays the model at the location: PHP Code:
PHP Code:
In a second compile, I logged the origin, called set_pev(entity,pev_origin,Origin), and then read it back by using pev(entity,pev_origin,Origin) and logged the value a second time. (Though I could not see the model because I used set_pev) All four of the logged origins were exactly the same, yet set_pev makes no model appear. Any suggestions? |
Re: Odd Entity Problem
set_pev acts as entity_set_vector( iEnt, EV_VEC_origin, vecOrigin )
engfunc( EngFunc_SetOrigin, iEnt, vecOrigin ) |
Re: Odd Entity Problem
I used set_pev(entity,pev_origin,Origin) for some other entities I spawned. Why is it that in this case I need to use engfunc?
|
Re: Odd Entity Problem
Because you used set_pev BEFORE you spawn those ents.
Then the game sends SetOrigin in the spawn function. |
Re: Odd Entity Problem
The engfunc worked perfectly, but it still bothers me that I don't understand it completely!
Here's the order everything went in on both. One that already worked: PHP Code:
PHP Code:
|
Re: Odd Entity Problem
Also, use EngFunc_SetSize.
|
Re: Odd Entity Problem
What for? The bounding box on the first one?
|
Re: Odd Entity Problem
Instead of :
set_pev(Item,pev_mins,Minbox) set_pev(Item,pev_maxs,Maxbox) Then, absmin and absmax will also be set. |
| All times are GMT -4. The time now is 15:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.