Raised This Month: $ Target: $400
 0% 

Entity following a player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-09-2009 , 11:38   Entity following a player
Reply With Quote #1

Hi.
Let's say i create an entity and set the origin on a player's leg for example. How can i make that entity to follow the player everywhere? to have the same origin all the time ?
__________________

anakin_cstrike is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 02-09-2009 , 11:42   Re: Entity following a player
Reply With Quote #2

maybe this can help you out.
__________________
I am out of order!
grimvh2 is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-09-2009 , 11:47   Re: Entity following a player
Reply With Quote #3

Hmm...
PHP Code:
set_peviEntpev_movetypeMOVETYPE_FLY );
set_peviEntpev_ownerid ); 
Can only this 2 functions make that ?
__________________


Last edited by anakin_cstrike; 02-09-2009 at 12:05.
anakin_cstrike is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-09-2009 , 11:53   Re: Entity following a player
Reply With Quote #4

MOVETYPE_FOLLOW

and then
set_pev(ent, pev_aiment, id)

PS: You dont need pev_origin only setmodel
__________________

Last edited by AntiBots; 02-09-2009 at 11:55.
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-09-2009 , 12:00   Re: Entity following a player
Reply With Quote #5

Quote:
Originally Posted by AntiBots View Post
MOVETYPE_FOLLOW

and then
set_pev(ent, pev_aiment, id)

PS: You dont need pev_origin only setmodel
Thanks. For what i want to do, i need to set origin =D
__________________

anakin_cstrike is offline
Reply



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 17:08.


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