| Home Page | Recent Changes

ForceScoreReset

Just a nice bit of code if you ever want to reset the Team Scores of an Assault game

//=============================================================================
// ASForceScoreReset.
//=============================================================================
class ASForceScoreReset extends Triggers
    placeable;

function Trigger( actor Other, pawn EventInstigator )
{
    ASGameInfo(Level.Game).Teams[0].Score = 0;
    ASGameInfo(Level.Game).Teams[1].Score = 0;
}

All you have to do is trigger this when to round begins (a scripted trigger with a trigger event as its first value will do) or just set the objects tag to BeginRound (not tested)

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In