Set origin behind of the enemy?
Hello!, someone knows since I can do, that on having written / something, the player's transport, but behind the enemy?
that put the origin behind the enemy. Please! |
Re: Set origin behind of the enemy?
It's simple, you get the player's origin, his forward direction and add the origin to the negatively multiplied forward direction by how many units you want it behind the player's origin.
Quick code, 100 units behind the player's VIEW (if player looks down, the origin will be up, if he looks streight ahead, the origin will be behind him) Code:
new Float:fOrigin[3] |
Re: Set origin behind of the enemy?
Try with it, the increase, this diminishes the fOrigin and fForward, but it did not put me origin :/
|
Re: Set origin behind of the enemy?
Quote:
|
| All times are GMT -4. The time now is 11:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.