πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2022-10-19. It may be informal or outdated β€” anyone can edit this page to improve it. This topic changes between game versions β€” double-check before relying on it. Original discussion

Offsetting an entity's visual position without moving it

πŸŒ™ LuaUpdated 2 days agoβ€’0 views
Set the entity NoDraw, then draw it manually clientside inside a render/pushMatrix context with a Matrix offset (Matrix():setTranslation(Vector(x,y,z))). render…

How to offset the visual position of an entity without actually moving it

Set the entity NoDraw, then draw it manually clientside inside a render/pushMatrix context with a Matrix offset (Matrix():setTranslation(Vector(x,y,z))). renderoffscreen doesn't render anything visible - it still runs when the SF screen isn't visible and is mainly for rendertargets. Create the matrix once outside the hook and update values, don't recreate per frame.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.