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

Difference between revisions of "Unreal Wiki:Scratchpad"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
This page is for pasting code you want to show someone as an example or to get assistance with.  This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.
 
This page is for pasting code you want to show someone as an example or to get assistance with.  This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.
  
Line 5: Line 6:
 
'''Clean up after you're done!'''
 
'''Clean up after you're done!'''
 
----
 
----
 +
 
<uscript>
 
<uscript>
 
// paste your code here
 
// paste your code here
 
</uscript>
 
</uscript>
<br>
 
<uscript>
 
class highlightertest extends actor abstract;
 
  
`include(langconvert.uci)
+
====Full Key====
 
+
* <sup>1</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 1]].
// <--
+
* <sup>2</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]].
var bool testthisway;     ///what about this
+
* <sup>2+</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]], from this version onwards.
var bool testthisnoway;   // I should be [green]
+
* <sup>2x</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]], starting with [[UT2004]].
var bool testthis;       //I DON'T know whats happenin man
+
* <sup>3</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]].
var `colour greytext;
+
* <sup>3+</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]], starting with [[UT3]] patch 2.0.
var `colour greentext;  //Im not green :S
+
* <sup>3*</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]], starting with [[UDK]].
 
+
* (no number) &ndash; {'''$Topic''' is relevant/available to/in} all Unreal Engine generations.
default properties{
+
 
+
}
+
</uscript>
+
 
<br>
 
<br>
<uscript>
+
====Enum Key====
class arraytest extends highlightertest;
+
{{classgames|Vector}}<sup>--|</sup><br>
 
+
{{classgames|Range}}<sup>--|'''2'''</sup><br>
var protected array< class<actor> > actorlist;
+
{{classgames|Vector2D}}<sup>--|'''3'''</sup><br>
 
+
{{classgames|Color}}<br>
reliable server function actorlist findinlist(actor A)
+
{{classgames|LinearColor}}<br>
{
+
<br>
  local array< class<actor> > Rlist;
+
====Class Key====
  local class<actor> fA;
+
{{classgames|Actor}}<br>
   
+
{{classgames|Rook}}<br> - TribesV?
  foreach A(fA)
+
{{classgames|SoundCue}}<br>
  {
+
{{classgames|UTGreedGame}}<br>
    Rlist.Additem(fA);
+
{{classgames|LegendObjectComponent}}<br>
  }
+
{{classgames|FluidSurfaceOscillator}}<br>
 
+
{{classgames|Ammunition}}<br>
  if(Rlist != None)
+
{{classgames|Util}}<br>
    return Rlist;
+
{{classgames|xUtil}} -UE2??<br>
 
+
{{classgames|UnrealPlayer}}<br>
  if(bEndnow && bNetInitial)
+
{{classgames|xPlayer}} -UE2??<br>
      return fA;
+
{{classgames|UTPlayerController}}<br>
}
+
{{classgames|WeaponFire}}
 
+
<br>
defaultproperties{
+
====Keyword Key====
 
+
{{classgames|Expands}}<br>
}
+
{{classgames|Extends}}<br>
</uscript>
+
{{classgames|server}}<br>
 +
{{classgames|replicated}}<br>
 +
{{classgames|intrinsic}}<br>

Latest revision as of 08:41, 6 October 2011

This page is for pasting code you want to show someone as an example or to get assistance with. This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.

You are free to remove any existing code from below, and paste your code between the <uscript> </uscript> tags. If the page hasn't been edited in the last few hours (the last edit timestamp is 2011-10-06 08:41:16), you can assume it isn't needed anymore and can be removed. A full edit history will be available, so don't worry about losing anything you removed.

Clean up after you're done!


// paste your code here

Full Key[edit]

  • 1 – {$Topic is relevant/available to/in} Unreal Engine 1.
  • 2 – {$Topic is relevant/available to/in} Unreal Engine 2.
  • 2+ – {$Topic is relevant/available to/in} Unreal Engine 2, from this version onwards.
  • 2x – {$Topic is relevant/available to/in} Unreal Engine 2, starting with UT2004.
  • 3 – {$Topic is relevant/available to/in} Unreal Engine 3.
  • 3+ – {$Topic is relevant/available to/in} Unreal Engine 3, starting with UT3 patch 2.0.
  • 3* – {$Topic is relevant/available to/in} Unreal Engine 3, starting with UDK.
  • (no number) – {$Topic is relevant/available to/in} all Unreal Engine generations.


Enum Key[edit]

Vector(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3)--|
Range(U2, U2XMP, UE2Runtime, UT2003, UT2004)--|2
Vector2D(UDK, UT3)--|3
Color(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3)
LinearColor(UDK, UT3)

Class Key[edit]

Actor(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3)
Rook(no matching games found)
- TribesV? SoundCue(UDK, UT3)
UTGreedGame(UT3)
LegendObjectComponent(U2XMP)
FluidSurfaceOscillator(U2, U2XMP, UE2Runtime, UT2003, UT2004)
Ammunition(U2XMP, UE2Runtime, UT2003, UT2004)
Util(U2, U2XMP)
xUtil(no matching games found) -UE2??
UnrealPlayer(UT2003, UT2004)
xPlayer(no matching games found) -UE2??
UTPlayerController(UDK, UT3)
WeaponFire(UT2003, UT2004)

Keyword Key[edit]

Expands(no matching games found)
Extends(no matching games found)
server(no matching games found)
replicated(no matching games found)
intrinsic(no matching games found)