Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 22:20:07 +0000



Post From: User/Source code controlled settings

[2022-02-05 21:42:45]
1+1=10 - Posts: 270
One alternative I didn’t think of earlier is to use the custom string input type. For every drawstyle type you anticipate using you can have a custom string — e.g. “Line” to represent DRAWSTYLE_LINE.

Then outside of setDefaults you can get the input_selected_string which returns an int which can be sent to a switch statement or if/elif/elif chain.

Docs: ACSIL Interface Members - sc.Input Array: sc.Input[].SetCustomInputStrings()