the Sim Settlements forums!

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Problems with special unit recruitment via scripts

Deno

New Member
Messages
15
Hello everyone, I've been developing a faction pack and I want to create special units with the help of scripts. I've looked at the script examples at Factionleader's Toolkit. If I try use first one or second one it gives "cannot cast SimSettlement:FactionUnitData as miscobject" error during compile. If I try use the last one(function) compiler gives errors about "FactionUnitData" script.

I've also tried to figure out how does special unit spawning work. But when I looked at OutpostManager script I couldn't find function with the name "TryToRecruitSpecialUnit". Is it on a child script of OutpostManager?

If anyone knows how to achieve special unit recruitment via scripts I'd really appreciate help.

Edit: Ok, I've found "TryToRecruitSpecialUnit" in SoldierManager script. Compile issues persist though.

Edit 2: I think I'm on the brink of a breakthrough. Only issue in compiler is "cannot cast a miscobject to a simsettlements:factionunitdata, types are incompatible" error.
 
Last edited:
Hello everyone, I've been developing a faction pack and I want to create special units with the help of scripts. I've looked at the script examples at Factionleader's Toolkit. If I try use first one or second one it gives "cannot cast SimSettlement:FactionUnitData as miscobject" error during compile. If I try use the last one(function) compiler gives errors about "FactionUnitData" script.

I've also tried to figure out how does special unit spawning work. But when I looked at OutpostManager script I couldn't find function with the name "TryToRecruitSpecialUnit". Is it on a child script of OutpostManager?

If anyone knows how to achieve special unit recruitment via scripts I'd really appreciate help.

Edit: Ok, I've found "TryToRecruitSpecialUnit" in SoldierManager script. Compile issues persist though.
:bye

Hey, @Deno :good

Good news, late last night they found what I think is the same bug. I got a note telling me to be on the :searchlookout for posts just like this. They really wanted folks to know that it has been fixed in the test build and looks like it will come out in the patch release next Friday. :yes3

Specific issue identified: "the special unit recruitment for Raiders and faction packs."

Thank you very much for what looks like confirmation. :drinks Confirmation is a good thing :declare
 
Top