• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code CheckReplacement not being fired for ROObjective

-=THOR=-

Grizzled Veteran
Sep 20, 2011
1,050
50
Hi,

I wrote this code in my mutator:

Code:
function bool CheckReplacement(Actor Other)
{
  local bool ret;

  `Log("CheckReplacement", true, 'TimingOverride');    
  ret = Super.CheckReplacement(Other);

  if (ROObjective(Other) != None)
  {
    `Log("ROObjective Assigned", true, 'TimingOverride');
    ROObjective(Other).CountdownTime *= 2;
  }
  
  return ret;
}

The problem is that "ROObjective Assigned" never appears in the logs, while "CheckReplacement" appears often. Any idea why? ROObjective is a NavigationPoint which is an Actor.
 
Last edited:
Hi,

I wrote this code in my mutator:

Code:
function bool CheckReplacement(Actor Other)
{
  local bool ret;

  `Log("CheckReplacement", true, 'TimingOverride');    
  ret = Super.CheckReplacement(Other);

  if (ROObjective(Other) != None)
  {
    `Log("ROObjective Assigned", true, 'TimingOverride');
    ROObjective(Other).CountdownTime *= 2;
  }
  
  return ret;
}
The problem is that "ROObjective Assigned" never appears in the logs, while "CheckReplacement" appears often. Any idea why? ROObjective is a NavigationPoint which is an Actor.

CheckReplacement is not called for all classes. I guess ROObjective is one of them.
 
Upvote 0