Raised This Month: $ Target: $400
 0% 

Disappearing Models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-17-2006 , 00:15   Disappearing Models
Reply With Quote #1

I wanted to make an entity to follow a player and i dont want to use EV_ENT_aiment. But for some reason the model disappear if I move to a certain place in the map. The code posted below is a short version.

Code:
public client_PreThink(id) {     if(ent[id] > 0)     {         new Float:vOrigin[3], Float:vAngles[3]         entity_get_vector(id, EV_VEC_origin, vOrigin)         entity_get_vector(id, EV_VEC_angles, vAngles)                 entity_set_vector(ent[id], EV_VEC_origin, vOrigin)         entity_set_vector(ent[id], EV_VEC_angles, vAngles)     }     return PLUGIN_CONTINUE }

note: didnt use MOVETYPE_FOLLOW but tried this before with no luck.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit 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 16:34.


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