Re: I has a question about 227...
Posted: Sun Jan 04, 2009 12:09 pm
Also about returns, the Wiki says that it could also be like this:
don't remember and the site is down, but the last two might be inverse - else return true return false. Note the use of else - your script will be a lot faster because it won't have to recheck everything all over again. Logically, an actor will never have two class names!
Another thing to note: you should use one mutator instead of three to make sure that they don't conflict with each other. However, sometimes three are better, like if you will release them separately, but you should still be aware that one is better than three. And the last thing, I'm not sure if there are mutator groups in UE1, but if there are, make sure the group name is "Arena" - this will prevent other mutators of the same group to be added in a game, thus preventing conflicts.
Code: Select all
function bool CheckReplacement(Actor Other,out byte bSuperRelevant)
{
if(Other.class==Class'something.something')
{
ReplaceWith(Other,"something");
return false;
}
else if(...)
{
...
return false;
}
else if(...)
{
...
return false;
}
...
else return false;
return true;
}
Another thing to note: you should use one mutator instead of three to make sure that they don't conflict with each other. However, sometimes three are better, like if you will release them separately, but you should still be aware that one is better than three. And the last thing, I'm not sure if there are mutator groups in UE1, but if there are, make sure the group name is "Arena" - this will prevent other mutators of the same group to be added in a game, thus preventing conflicts.