Browsing Wiremod's section
← Back to ACE
💬

Community answer

Collected from the ACE community Discord archive around 2025-04-18. It may be informal or outdated — anyone can edit this page to improve it.

Conditional gear shifting in E2

💻 Expression 2Updated 2 days ago•0 views
Use chained if statements such as if (speed>30 & speed<60) with predefined vars, or better, compute the gear with a single math equation and floor() the value t…

How can I do conditional gear shifting in E2 when switch statements can't take range conditions like 'speed over A but less than B'?

Use chained if statements such as if (speed>30 & speed<60) with predefined vars, or better, compute the gear with a single math equation and floor() the value to get the corresponding gear - graphing tools like Desmos help design the equation. Also avoid variables cycling continuously; one optimized gearbox chip went from ~200 to ~80 ops that way.

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.