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


From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT :: Actor (UT) >> Decoration (UT) >> Cannon

This decoration, when triggered, will point in the direction of the player. Under normal circumstances in Unreal Tournament, the cannon will not shoot no matter how many times you trigger it.


Cannon Group[edit]

The sound the cannon makes when it is activated.
How far away Instigator must be to deactivate Cannon.
How far down to drop spawning of projectile.
The amount of damage the cannon can take before being destroyed.
How often we sample Instigator's location.
How fast Cannon tracks Instigator.


Unfortunately, the code regarding the function "Timer()", inside the state "ActivateCannon", specifies(probably on wrong) that the cannon must not shoot or continue tracking if the Pawn, who activated it, has the health value bigger than 0.

This is the part of the code that cause this bug:

if (Pawn(cTarget)!=None && Pawn(cTarget).Health>0 || cTarget==None) GoToState('Deactivate');

Where "cTarget" is the Pawn who activated the cannon.


If you type in fly after you die in a deathmatch game (needs testing in CTF, Domination and Assault), you can move around as a 'ghost.' By this, I mean the player has reached zero health and has no inventory. A simple way to do this is to type in "suicide" and then type in "fly." While in this 'ghost' state, you can go back to walking or ghost mode. If a cannon has been activated before, it will track and shoot at you in this 'ghost' state. This is the first time I remember getting the cannon to work.

Known Subclasses[edit]

  • HugeCannon (A cannon with a larger drawscale and more health.)