entity origin !
2 Attachment(s)
We always set the entity origin used
PHP Code:
sorry for my bad en ? just look at the photo |
Re: entity origin !
Code:
if that dosent work, try changing "flOrigin[0]" to "flOrigin[1]" |
Re: entity origin !
both dosen't work !
|
Re: entity origin !
- Get the eye position ( pev_origin + pev_view_ofs )
- Get the forward direction ( EngFunc_MakeVectors on the player's view angle ( pev_v_angle ), then using glb_v_forward ) - Then scale the direction by the length yo want and add it the eye position calculated before. |
Re: entity origin !
Do you mind give me some example !
|
Re: entity origin !
PHP Code:
and I have no idea how to set ! I don't know what func to be called ! |
Re: entity origin !
Code:
|
Re: entity origin !
Thx ArkShine !
test it and work fine ! |
Re: entity origin !
Sorry for bringing back an old topic, but I was wondering when would be the best time to use this if I am trying to keep the entity constantly in front of the player. Would it be best used in PreThink?
|
| All times are GMT -4. The time now is 04:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.