AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sprite follows player (https://forums.alliedmods.net/showthread.php?t=104882)

xbatista 09-28-2009 14:54

Sprite follows player
 
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 ?

Arkshine 09-28-2009 14:59

Re: Sprite follows player
 
Try env_sprite + MOVETYPE_FOLLOW.

xbatista 09-28-2009 15:01

Re: Sprite follows player
 
Creating an entity ? :000

Exolent[jNr] 09-28-2009 15:13

Re: Sprite follows player
 
Quote:

Originally Posted by xbatista (Post 946055)
Creating an entity ? :000

Yes.

xbatista 09-28-2009 15:24

Re: Sprite follows player
 
Nahh better I will not use

Arkshine 09-28-2009 15:32

Re: Sprite follows player
 
why ? Using that you can create just on time since the life is infinite.

Sylwester 09-28-2009 15:58

Re: Sprite follows player
 
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.

xbatista 09-28-2009 16:06

Re: Sprite follows player
 
Ahhh okey okey

xbatista 09-29-2009 12:28

Re: Sprite follows player
 
When I make it and set model, the sprite model is black....and no animation of sprite play

Arkshine 09-29-2009 12:43

Re: Sprite follows player
 
You have to render the sprite. ( kRenderTransAdd ? )


All times are GMT -4. The time now is 22:36.

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