Jump to content

How exactly do I go about editing templates inside functions?


HazyAssaulter

Recommended Posts

I tried really hard to use this thread http://forums.nexusmods.com/index.php?/topic/3850855-modifying-uc-files/ to learn how to modify .uc files to my liking, but I can't find a straight answer.

 

I've really been trying for hours to learn how to change a couple lines of code in .uc files, but all I can find are tutorials about adding to .uc files or changing variables with config files. But I can't find anything for editing templates inside functions.

For example, if I wanted to change

Template.bShowRewardOnPin = true;

to

Template.bShowRewardOnPin = false;

how would I go about that? I have limited programming experience but if anyone could help and ELI5 it'd be a big help. I have a very simple mod that I think will be liked by a lot of people. If anyone can help me figure out how to implement it I will be sure to credit them as a contributor.

 

To give a little more context around the code, another example would be changing

static function X2DataTemplate CreateRecoverFlightDeviceTemplate()
{
local X2MissionSourceTemplate Template;

`CREATE_X2TEMPLATE(class'X2MissionSourceTemplate', Template, 'MissionSource_RecoverFlightDevice');
Template.bSkipRewardsRecap = true;

to read as

static function X2DataTemplate CreateRecoverFlightDeviceTemplate()
{
local X2MissionSourceTemplate Template;

`CREATE_X2TEMPLATE(class'X2MissionSourceTemplate', Template, 'MissionSource_RecoverFlightDevice');
Template.bSkipRewardsRecap = false;

Link to comment
Share on other sites

  • Recently Browsing   0 members

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