Jump to content

custom character doesn't fire off CivilianRescued event


SICGanes88

Recommended Posts

I was wondering if anyone has found the solution for the fix of where someone puts a custom character into XCOM 2 barracks that can save civilians? Is it because my custom character game object id isn't valid or my eTeam type isn't eTeam_Neutral. However, oddly enough when XCOM soldiers spawn including my custom character on tactical side - everyone who is spawned should be at least eTeam_XCom that spawned from the XCOM Skyranger.

 

I'm new by the way I'll introduce myself in a bit but I really been wrecking my head over this issue.

Link to comment
Share on other sites

Sorry, are you saying that when your custom soldier is present, nobody can save civilians? Or everybody *except* your soldier can save? In most mods which define a new soldier class, there is a section which sets various Boolean flags like bIsSoldier and bIsCivilian, for example in X2Character_DefaultCharacters.uc. For your custom soldier, are you setting these flags the way they are set for most soldier templates? It may be that you have set bIsCivilian true, for example, and maybe one civilian is not allowed to rescue another.

Link to comment
Share on other sites

Sorry, are you saying that when your custom soldier is present, nobody can save civilians? Or everybody *except* your soldier can save? In most mods which define a new soldier class, there is a section which sets various Boolean flags like bIsSoldier and bIsCivilian, for example in X2Character_DefaultCharacters.uc. For your custom soldier, are you setting these flags the way they are set for most soldier templates? It may be that you have set bIsCivilian true, for example, and maybe one civilian is not allowed to rescue another.

the custom character is set to bIsSoldier=true and everything is false. Everyone can save a civilian but not the custom character. I was wondering if anyone else had the following issue and or if there is a fix for this? I got to a part in XABI_DefaultBehaviors.uc I believe the file is called and it checks to see if the player has an valid object ID and gets the rescuerer but of course this is a core file and the game will crash if I attempt to make any chances to that file. It's inside the XCOM 2 SDK\Development\\Src\XComGame\Classes

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...