Raised This Month: $ Target: $400
 0% 

Sprite follows player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 14:54   Sprite follows player
Reply With Quote #1

How to make a sprite to follow player, cuz with TE_SPRITE, when the sprite appears and I go ,it stays on the last current origin... ?
Or I must do it with set_task ( I don't like this way ) or there are any other ways ?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-28-2009 , 14:59   Re: Sprite follows player
Reply With Quote #2

Try env_sprite + MOVETYPE_FOLLOW.
__________________
Arkshine is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 15:01   Re: Sprite follows player
Reply With Quote #3

Creating an entity ? :000
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-28-2009 , 15:13   Re: Sprite follows player
Reply With Quote #4

Quote:
Originally Posted by xbatista View Post
Creating an entity ? :000
Yes.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 15:24   Re: Sprite follows player
Reply With Quote #5

Nahh better I will not use
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-28-2009 , 15:32   Re: Sprite follows player
Reply With Quote #6

why ? Using that you can create just on time since the life is infinite.
__________________
Arkshine is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-28-2009 , 15:58   Re: Sprite follows player
Reply With Quote #7

You can use TE_PLAYERATTACHMENT, but the way it follows player is very limited (if you need sorceress energy shield above head, then this will be enough). If you need anything more then you must use entity.
__________________
Impossible is Nothing
Sylwester is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-28-2009 , 16:06   Re: Sprite follows player
Reply With Quote #8

Ahhh okey okey
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 09-29-2009 , 12:28   Re: Sprite follows player
Reply With Quote #9

When I make it and set model, the sprite model is black....and no animation of sprite play
__________________

Last edited by xbatista; 09-29-2009 at 12:39.
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-29-2009 , 12:43   Re: Sprite follows player
Reply With Quote #10

You have to render the sprite. ( kRenderTransAdd ? )
__________________
Arkshine 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 22:36.


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