Setting origin with set_pev vs set_user_origin
PHP Code:
When I use set_user_origin, it functions properly and takedamage gets called when shot. Is there something else I need to call after the set_pev? |
Re: Setting origin with set_pev vs set_user_origin
Look at fm_set_user_origin in fakemeta_util.inc
|
Re: Setting origin with set_pev vs set_user_origin
-Removed- Connor is faster.
Also, isn't the origin parameter of set_user_origin an Integer? |
Re: Setting origin with set_pev vs set_user_origin
Quote:
Dores: Oops yes it is. I posted that for just this thread, in the actual code it is an integer. I am using other functions that require the origin to be a float so I am changing all of the get\set origins to floats as well. |
Re: Setting origin with set_pev vs set_user_origin
fm_set_user_origin requires an int origin param.
fm_set_user_origin( id , param ) Per fakemeta_util.inc, the above function converts the origin to a float and then calls fm_entity_set_origin( id , float:origin ). I am using the fm_entity_set_origin call directly and it is working :) +karma |
| All times are GMT -4. The time now is 01:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.