Raised This Month: $ Target: $400
 0% 

Follow Entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SentryIII
Junior Member
Join Date: Oct 2004
Old 10-29-2005 , 03:13   Follow Entity
Reply With Quote #1

I cant get this to work for the life of me, the entity doesnt follow the player. It only spawns at the players origin and sits there...

Code:
public view(id, target){     new Float:origin[3]     new entFollow = create_entity("info_target")         entity_set_string(entFollow, EV_SZ_classname, "follow_entity")         entity_set_int(entFollow, EV_INT_movetype, MOVETYPE_FOLLOW)     entity_set_int(entFollow, EV_INT_solid, SOLID_NOT)     entity_set_edict(entFollow, EV_ENT_aiment, target)     entity_get_vector(id, EV_VEC_origin, origin);     entity_set_origin(entFollow, origin)     attach_view(id, entFollow)         viewing[id]=true     return PLUGIN_HANDLED }

Heres the function to go back to the players own view which doesnt work either...
Code:
public client_command(id){     if(viewing[id]){         new button = get_user_button(id)         if(button & IN_USE ||button & IN_ATTACK){             attach_view(id, id)             viewing[id]=false         }     } }
SentryIII 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 23:43.


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