[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
giving points for goal score  XML
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Author Message
Burk3M



Joined: 06/11/2011 14:08:57
Messages: 3
Offline

I have tried a couple of things, seeing as I'm trying to reverse engineer things they don't work

//bonus experience for goal score
if (!bAwardedGoalScore && TeamPlayerReplicationInfo(Killer.PlayerReplicationInfo) != None && TeamPlayerReplicationInfo(Killer.PlayerReplicationInfo).BGoalScore)
{
KillerData.Experience +=50
bAwardedGoalScore = True;
}

This tells me bad expression after ! so bAwardedGoalScore doesn't work

and

//bonus exp for goal score
log(Level.Game.GetHumanReadableName()@"Scored the goal, awarded"@RPGMut.EXPForWin@"EXP");

This guy doesn't work I'm expecting because the utcontroller doesn't log goal scores.

I'm stumped because I do not know much

Someone help!!
 
Forum Index -> UnrealScript, Coding, Mapping, and 3rd party Mods
Go to: