Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
Difference between revisions of "UE2:AnotherPawn"
From Unreal Wiki, The Unreal Engine Documentation Site
m |
m |
||
Line 5: | Line 5: | ||
==Properties== | ==Properties== | ||
− | |||
− | |||
; [[Open_Source/Pawn_Factory| Pawn Factory]] ParentFactory : The factory that created the pawn. | ; [[Open_Source/Pawn_Factory| Pawn Factory]] ParentFactory : The factory that created the pawn. | ||
Revision as of 14:53, 1 April 2008
Contents
The classbox template is only supposed to be used by the converted content imported into the Legacy: namespace. Consider adding descriptions to existing class pages instead.
A generic pawn that can be spawned by a PawnFactory. It holds a variable of the factory that created the pawn.
Properties
- Pawn Factory ParentFactory
- The factory that created the pawn.
Functions
- Destroyed() (simulated)
Code
// ============================================================================ // AnotherPawn // Copyright (c) 2006 by Andrew Fyfe <andrew@neptune-one.net> // This program is free software; you can redistribute and/or modify // it under the terms of the Lesser Open Unreal Mod License version 1.1. // // A generic pawn that can be spawned by a PawnFactory. // ============================================================================ class AnotherPawn extends xPawn abstract; // ============================================================================ // Properties // ============================================================================ var PawnFactory ParentFactory; // The factory that created the pawn. // ============================================================================ // Destroyed // ============================================================================ simulated function Destroyed() { // If we were made in a factory, tell them we're dead :( if ( ParentFactory != None ) ParentFactory.PawnDestroyed( self ); super.Destroyed(); } // ============================================================================ // Defaults // ============================================================================ DefaultProperties { }