Raised This Month: $ Target: $400
 0% 

Entities following others


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-28-2007 , 09:51   Re: Entities following others
Reply With Quote #5

To make it follow, simply set the pev_aiment field to a player you want it to follow (or another entity) then set move type to MOVETYPE_FOLLOW.

All the information on how to do this is availabe in turtorials and other plugins. The only thing I see you having trouble with is following, so here's come quick code:

Code:
// 'ent' is your entity, 'id' is the index of the player. set_pev(ent, pev_aiment, id); set_pev(ent, pev_movetype, MOVETYPE_FOLLOW);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred

Last edited by Zenith77; 08-28-2007 at 09:53.
Zenith77 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:05.


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