UNfreezing an entity? func_physbox
hey i put up this code that freezes an entity fine
but when i try to unfreeze it, it just disappears? i've tried all MOVETYPE's, none of it worked and VPHYSICS makes it disappear. also tried some entity inputs and stuff but i can't seem to get it unfreeze properly. help? PHP Code:
Spoiler
|
Re: UNfreezing an entity? func_physbox
try MOVETYPE_FLYGRAVITY
|
Re: UNfreezing an entity? func_physbox
Quote:
|
Re: UNfreezing an entity? func_physbox
Sorry didn't see that. Might want to try doing some debug prints to check velocity/position of block before and after unfreezing it and to check if it still exists or if it's moved.
|
Re: UNfreezing an entity? func_physbox
PHP Code:
PHP Code:
PHP Code:
i tried to make it somewhat solid with PHP Code:
|
Re: UNfreezing an entity? func_physbox
okay i solved it.
before you freeze it, get the entity origin and store it to global float variable like this: PHP Code:
when you unfreeze it, use MOVETYPE_VPHYSICS and set the entity origin to what we made before: PHP Code:
so it works when i teleport the entity slightly up like this g_WorldPosition[2] = iEntOrigin[2] + 1.0; |
All times are GMT -4. The time now is 21:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.