I am attempting to call a function that resides in another mutator and using the return value in my mutator. Here is what I have done so far. It compiles ok, but the function never gets called... (put a few log()'s in the function).
My Mutator:
The OtherMutator (the return string is for illustrative purposes):
I hope this shows what I'm trying to do. Can it be done like this? Is there a better way... Your help is much appreciated.
My Mutator:
Code:
var [COLOR="Red"]OtherMutator[/COLOR] OtherMut;
function timer()
{
local pawn p;
local string PS;
for (p=Level.PawnList; p!=None; p=p.NextPawn) {
PS = OtherMut.OtherFunc(p.playerreplicationinfo.playername);
log(PS);
}
}
The OtherMutator (the return string is for illustrative purposes):
Code:
function string OtherFunc(string PlayerName) {
log("OtherFunc was called");
return "I like"@PlayerName;
}
I hope this shows what I'm trying to do. Can it be done like this? Is there a better way... Your help is much appreciated.
Last edited: