![]() |
![]() |
|
#1
|
|||
|
|||
|
Hello, I want to create a mutator that modifies ROObjTerritory.
Can someone tell me how I can replace ROObjTerritory with my class? I tried CheckReplacement, but the result was not what I expected (my class seemed not to be loaded). Code:
function bool CheckReplacement(Actor Other,out byte bSuperRelevant)
{
if (ROObjTerritory(Other) != None)
{
ReplaceWith(Other,"XYZ.maROObjTerritory");
return false;
}
else
return true;
}
|
|
#2
|
|||
|
|||
|
Ok, I came to the conclusion that replacing ROObjTerritory is not the best idea ...
So what I want now is to copy all properties of ROOjTerritory-actors on a map and spawn a modified ROObjTerritory-actor that has all the settings. Probably bot-pathing would not work then, but I could live with that. Code:
var ROTeamGame GameInfo;
[...]
function SpawnModObjectives()
{
local int i;
GameInfo = ROTeamGame(Level.Game);
for( i = 0; i < 16; i++)
{
if( GameInfo.Objectives[i] != none )
{
...
}
}
}
Can someone help me here? |
|
#3
|
||||
|
||||
|
What is it that you are trying to do? What is your objective of the change that would help.
__________________
People sleep peaceably in their beds at night only because rough men stand ready to do violence on their behalf. -George Orwell Maps: Dubrava, Pavlov's House Shared Links |
|
#4
|
|||
|
|||
|
I want to modify the objectives. Yet I want that these changes also work in present maps.
So I intended to search through all Objectives, spawn new Objectives that are based on my class, copy all the settings from the initial Objectives and deactivate them later on. Yet it seems that GameInfo.Objectives[i] is none. So there would be nothing there to copy the settings off. |
|
#5
|
|||
|
|||
|
Bump for the greater good of RO.
Please help Ramm. |
|
#6
|
|||
|
|||
|
bump.
I'll buy you lunch if you help us with this Ramm. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|