AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disappearing Models (https://forums.alliedmods.net/showthread.php?t=28532)

Cheap_Suit 05-17-2006 00:15

Disappearing Models
 
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.


All times are GMT -4. The time now is 16:34.

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