I'm unsure how to use roles in 1.1.4 #309
Unanswered
DizzyKungFu
asked this question in
Mission Scripting Questions
Replies: 2 comments
-
The first role in the list is used as the spawned object's SIDE. The sides are what are displayed in the checkboxes for comms/science. So in your prefab_spawn data, just move "raider" to be first in the "ship_roles" attribute. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you want to hide the side, prepend a "#" to the side key. You cannot current spoof a side, but that will be coming in 1.2 when side can have a different display string vs. the "key" string. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use roles to manage selecting ships from particular fleets, and this was once behind the scenes, but now in 1.1.4 these "secret roles" are visible to Comms and Science:

Is there a different way I should handle this? The related code is below:
Beta Was this translation helpful? Give feedback.
All reactions