The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
Difference between revisions of "Legacy:VitalOverdose/AllMapVehicleFactory"
From Unreal Wiki, The Unreal Engine Documentation Site
m (→Related) |
|||
(One intermediate revision by one other user not shown) | |||
Line 23: | Line 23: | ||
==Related== | ==Related== | ||
− | + | *[[Legacy:Vehicles|Vehicles]] | |
− | [[Legacy:Vehicles|Vehicles]] | + | *[[Legacy:ONSVehicle|ONSVehicle]] |
− | + | *[[Legacy:VitalOverdose/QuickVehicleSpawner | QuickVehicleSpawner]] | |
− | [[Legacy:ONSVehicle|ONSVehicle]] | + | *[[Legacy:VitalOverdose/ONSVehicleTeleporter | ONSVehicleTeleporter]] |
− | + | *[[Legacy:VitalOverdose/ONSVehicleBooster | ONSVehicleBooster]] | |
− | [[Legacy:VitalOverdose/QuickVehicleSpawner | QuickVehicleSpawner]] | + | *[[Legacy:VitalOverdose/ONSVehicleEjectionTrigger | ONSVehicleEjectionTrigger]] |
+ | *[[Legacy:VitalOverdose/ONSVehicleSpeedTrap | ONSVehicleSpeedTrap]] | ||
+ | *[[Legacy:VitalOverdose/ONSVehicleFXTagger | ONSVehicleFXTagger]] | ||
==Discusion== | ==Discusion== | ||
− | '''VitalOverdose''' - | + | '''VitalOverdose''' - Credit to Tarquin for pointing out the correct way to reference the GameInfo actor. |
[[Category:Legacy Custom Class (UT2004)|{{PAGENAME}}]] | [[Category:Legacy Custom Class (UT2004)|{{PAGENAME}}]] |
Latest revision as of 06:09, 14 September 2011
Contents
Overview[edit]
This is a modified ASVehicleFactory that will work in all gametypes. It works by overwriting the post begin play function and adding a small bit of code that scans for the GameInfo actor in the level.
The Script[edit]
class AllMapVehicleFactory Extends AsVehiclefactory Placeable; // Generic function : overwriting : adding 'simulated' before function name so it works online. simulated Function PostBeginPlay() { if (!Level.Game.bAllowVehicles) Level.Game.bAllowVehicles = True;// changes the bAllowVehicles value Super.PostBeginPlay(); // any function related code from the parent function is inserted here. }
Related[edit]
- Vehicles
- ONSVehicle
- QuickVehicleSpawner
- ONSVehicleTeleporter
- ONSVehicleBooster
- ONSVehicleEjectionTrigger
- ONSVehicleSpeedTrap
- ONSVehicleFXTagger
Discusion[edit]
VitalOverdose - Credit to Tarquin for pointing out the correct way to reference the GameInfo actor.