Sprite in Front of a Players Face?
So here´s a code, token from "unhidden_radio", wich simulates a radiosprite OVER a Head from a specific Player, where "write_coord" is the relative position over his Head.
How can I place a Sprite in front of his Face (increase or decrease x oder y axis relative to his body)??? This would be a funny new way to transmitt some Messages via Sprite! message_begin( MSG_ONE , SVC_TEMPENTITY, {0,0,0} , player) write_byte(124) write_byte(id) write_coord(35) write_short(radiosprite) write_short(600) message_end() any Ideas? |
TE_PLAYERATTACHMENT can only be used to make things appear directly overtop the player (or perhaps in or under them if using a negative value for the coord), but you can't make it in front of them. Your best bet would be to use TE_SPRITE, although it won't stick to them.
Code:
|
thx. I knew that alternative. But I was hoping that theres a way that the sprite stick at his face for a few seconds and when he rotate, the sprite is rotating too.
|
| All times are GMT -4. The time now is 19:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.