I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

Legacy:Evolution/ETVSA

From Unreal Wiki, The Unreal Engine Documentation Site
< Legacy:Evolution
Revision as of 06:11, 29 November 2002 by Evolution (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. //-----------------------------------------------------------
  2. //
  3. //-----------------------------------------------------------
  4. class ETVSA extends Info;
  5.  
  6. function PostBeginPlay()
  7. {
  8. 	local Mutator M;
  9. 	local EvoETV EETV;
  10.  
  11. 	super.PostBeginPlay();
  12. 	for (M=Level.Game.BaseMutator;M!=None;M=M.NextMutator)
  13. 	{
  14. 		if (EvoETV(M)!=None)
  15. 			return;
  16. 	}
  17. 	EETV = Spawn(class'EvoETV');
  18. 	if (Level.Game.BaseMutator!=None)
  19. 		Level.Game.BaseMutator.AddMutator(EETV);
  20. 	else Level.Game.BaseMutator=EETV;
  21. }