Skip to content

Instantly share code, notes, and snippets.

@gen3vra
Created June 1, 2023 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gen3vra/0506c2d52d58bf3ad72c827effe0c865 to your computer and use it in GitHub Desktop.
Save gen3vra/0506c2d52d58bf3ad72c827effe0c865 to your computer and use it in GitHub Desktop.
Starbound Simple Vapor Trail Enable Snippet
// Vapor trail
if (m_movementController->velocity()[1] < -50) {
m_vaporTrailTimer += WorldTimestep;
if (m_vaporTrailTimer > 1)
m_humanoid->setVaporTrail(true);
}else{
m_vaporTrailTimer = 0;
m_humanoid->setVaporTrail(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment