Raised This Month: $ Target: $400
 0% 

Sprite over entity ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
waza123a
Member
Join Date: Mar 2010
Old 08-13-2013 , 22:02   Sprite over entity ?
Reply With Quote #1

I have a object in game, entity.

How to create a sprite over it ?

this is not working, server crash
Code:
engfunc( EngFunc_SetModel, MY_ENTITY, MY_SPRITE)
waza123a is offline
Old 08-14-2013, 06:43
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 08-14-2013 , 06:51   Re: Sprite over entity ?
Reply With Quote #2

Make sure the model/sprite is precached.

If you want the sprite to follow your entity you can assign its pev_aiment to the owner entity. Note that pev_movetype has to be MOVETYPE_FLY.

For reference: http://forums.alliedmods.net/showthread.php?t=171364
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath 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 18:27.


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