💬

Community answer

Collected from the ACE community Discord archive around 2024-01-31. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Spawning a prop at the right height without it falling

💬 GeneralUpdated 2 days ago•1 views
Get the prop's bounding box and add half its height (obbMins z offset) to the target Z. For swapping a fading prop for a new one at the same spot: newPos = (old…

Best way to spawn a prop at the right height so it does not phase/fall into the ground

Get the prop's bounding box and add half its height (obbMins z offset) to the target Z. For swapping a fading prop for a new one at the same spot: newPos = (oldPos + Vector(0,0,oldEnt:obbMins().z)) - Vector(0,0,newProp:obbMins().z).

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.