-
-
Save gen3vra/0506c2d52d58bf3ad72c827effe0c865 to your computer and use it in GitHub Desktop.
Starbound Simple Vapor Trail Enable Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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