| Home Page | Recent Changes

VitalOverdose/AllMapVecFactory

UT2004 :: Actor >> SVehicleFactory >> ASVehicleFactory >> AllMapVecFactory (Package: custom)
 

by VitalOverdose

Part of Vital'sPMT

OverView

//-----------------------------------------------------------
// AllMapVecFactory
// By VitalOverDose
//-----------------------------------------------------------
class AllMapVecFactory Extends asvehiclefactory;

simulated Function PostBeginPlay()
{
Local Gameinfo FoundGameInfo;                                // blankVariable of type 'Gameinfo' to store ref
foreach DynamicActors(Class'Engine.Gameinfo', FoundGameInfo) // iterates though all dynamic Actors that are 'gameinfos'
        {                                                    // and stores a ref to them in  FoundGameInfo
         if (FoundGameInfo.bAllowVehicles == True)           //
             FoundGameInfo.bAllowVehicles = True;           // Sets the value FoundGameInfo.bAllowVehicles to true
        }
Super.PostBeginPlay();                              // copys any Function related code from parent Class to here
}

Related

vehicles

discusion


Category Custom Class

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