I’ve been messing around with the scripting and found what I believe to be some bugs.
First, I have a brain that is acting as a Loadout selector. Pretty simplistic, when you interact with one of five switches, it
removes all trait sets
applies a new trait set (which includes a new weapon loadout and up to four traits, as well as preventing weapon pickup)
gives player a new weapon by replacing all
gives player a new secondary weapon
both of these weapons use the same weapons as the weapon loadout
pushes a splash to the player, saying what class they now are
Pretty simple.
I’ve found two pretty damning bugs, though:
when trying to give the player new equipment as well, the game glitches and the player unequips everything but the equipment. The camera also appears to move into the player’s torso, and the player goes into some sort of T pose.
when changing class once, it works perfectly. When changing class a second time, the player simply unequips their weapons and goes into some sort of T pose.
I’m trying to think of a workaround without making the scripts too unwieldy (it’s pretty rough being five copies of the initial one as it is), but wanted to point out the bugs. Is there a good place to report these?
Could you uh… Post a link to a screenshot of the script or something?
I don’t have much experience with this but seeing how the interactions play out and what it checks for on everything might help in somebody providing an answer
Are these additional steps? What is the purpose when accomplished here?
What?
Why is the script set up like this? Seems weird.
That last one mebbe
Point is, gotta see it to understand it
I also don’t see a step for removing any equipment. Maybe that assigned equipment is tied to the trait set? If you only have a step to remove traits (which I’m assuming are modifications to the character), what happens to the equipment assigned to that “class”?
Your post implies separate scripts for each class. You could create a separate script that removes every aspect of that class. Have it run before the class assignment. Don’t know how it is on linking stuff like that.