movetype_follow offset
I created an entity that follows the player. I want to add an offset so it stay above of player's head. According to the "movement follow" code, all I would need to do is add the offset to the entity's v_angle, but it's not working.
Code:
// Just copy angles and origin of parentCode:
|
Re: movetype_follow offset
have you tried giving it a size?
|
Re: movetype_follow offset
Yes, still not working.
|
Re: movetype_follow offset
Then you need to change the movetype and achieve it through think
I'm not sure movetype_follow will work with sprites Or try editing the sprite and give it height. |
Re: movetype_follow offset
It is not working, because you cannot change the Z origin of a movetype. You can spawn an info_target and set the model to the sprite, then set the origin to the origin +/- the difference with entity_set_model and entity_set_origin then set EV_INT_movetype to MOVETYPE_FOLLOW.
This way it will probably work, but if you just want to have a sprite above the player's head, instead I'd rather use TE_PLAYERATTACHMENT. PHP Code:
|
Re: movetype_follow offset
It doesn't work, I guess I've to do what natsheh said, give height to sprite.
That message would work but I need to scale the sprite, that's why I'm using entities. |
Re: movetype_follow offset
I guess this is what you are looking for https://forums.alliedmods.net/showthread.php?t=181306
Here it is done this way: PHP Code:
|
Re: movetype_follow offset
@iNvectus please read carefully what he requested, in post #5 what have you said clearly doesn't make any sense in the thread.
|
| All times are GMT -4. The time now is 02:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.