Follow Entity
I cant get this to work for the life of me, the entity doesnt follow the player. It only spawns at the players origin and sits there...
Code:
Heres the function to go back to the players own view which doesnt work either... Code:
|
Get rid of these two lines:
Code:
Apparently those are the lines that causes those errors. Instead you should constantly change the origin of the follow_entity, using client_PreThink. |
or even better. Register a think function for the entity and update it's position say ever 0.1s - See amx help on register_think.
if an entity of Classname[] thinks, its entity ID is forwarded to the named function |
any view function in AMXX seems to be messed up in both the engine and fakemeta modules even Eng_Fucn() calls....
Avalanche posted this a while back in bug reports so hopefullu it will be fixed in the next version of amxx |
Thanks for the nfo!
|
The view functions are only messed up if you try to directly attach a view to a player. Otherwise it works just fine, to directly attach a view to non-player entities.
|
1 Attachment(s)
No its still broken.... i would know...
If you dont belive me you can try out htis little script... |
| All times are GMT -4. The time now is 23:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.