Raised This Month: $ Target: $400
 0% 

Odd Entity Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 08-13-2009 , 14:13   Odd Entity Problem
Reply With Quote #1

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:
entity_set_origin(entity,Origin
When I do it this way, I see nothing at the location:
PHP Code:
set_pev(entity,pev_origin,Origin
In one compile, I even went as far as logging the origin, calling entity_set_origin(entity,Origin), and then reading it back by using pev(entity,pev_origin,Origin) and logging the value a second time. (I could see the model and everything)

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?
__________________
Bad_Bud 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 15:08.


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