help with attached entity lagging plz

Posted By: badapple

help with attached entity lagging plz - 10/24/17 00:04

hi , i havent been on the forum for a long while , lost my talents lol .
im working with a8 free edition right now on a space type game and im trying to attach a turret to the top of my ship using a vec_for vertex to place and hold it but it lags and doesnt stay tight with the vertex . i seem to remember there was something you could put in the code to keep attached entities from lagging but cant remember what , any suggestions ? im also using lite c not wdl
Posted By: Superku

Re: help with attached entity lagging plz - 10/24/17 05:19

You can set
proc_mode = PROC_LATE;
in the while loop of your turret attach function to put the function at the end of the scheduler. Then it should be executed each frame after you have already moved your ship.
A more robust approach (imagine you may need to set the same proc_mode in the ship function at some point) is to call the turret placement function (without a while loop) at the end of your ship loop, then you don't need to worry about proc_mode stuff and it will always work.
Posted By: Ezzett

Re: help with attached entity lagging plz - 10/24/17 18:39

At the bottom of the following manual page you can find the same solution Superku told you:

http://www.conitec.net/beta/aAnhang_events.htm
Posted By: badapple

Re: help with attached entity lagging plz - 11/18/17 14:57

thx guys
© 2024 lite-C Forums