Raised This Month: $ Target: $400
 0% 

Attaching entity to player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jinto
Member
Join Date: Jun 2004
Location: Seattle, WA
Old 03-21-2005 , 06:04  
Reply With Quote #5

Yes.
Oh and another quick note. the player becomes visible again right when he starts swooping. so you will have to keep him invisible.

And turbo is a model not a render effect.

Code:
new player_avatar = create_entity( "env_model" );
	
entity_set_int( player_avatar, EV_INT_movetype, MOVETYPE_FOLLOW );
entity_set_edict( player_avatar, EV_ENT_aiment, id );
	
entity_set_model( player_avatar, "<playermodel>" );
It will automatically assume the players animations.
Jinto is offline
Send a message via ICQ to Jinto Send a message via AIM to Jinto Send a message via MSN to Jinto Send a message via Yahoo to Jinto
 



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 13:58.


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