Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

Difference between revisions of "Unreal Wiki:Scratchpad"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
 
(15 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>
struct stuff
+
{{classgames|Vector2D}}<sup>--|'''3'''</sup><br>
{
+
{{classgames|Color}}<br>
  var actor more;
+
{{classgames|LinearColor}}<br>
};
+
<br>
var array<stuff> morestuff;
+
====Class Key====
 
+
{{classgames|Actor}}<br>
var protected string FOOBOO;
+
{{classgames|Rook}}<br> - TribesV?
var protected array< class<actor> > actorlist;
+
{{classgames|SoundCue}}<br>
var globalconfig bool bEndnow;
+
{{classgames|UTGreedGame}}<br>
var globalconfig string kk;
+
{{classgames|LegendObjectComponent}}<br>
+
{{classgames|FluidSurfaceOscillator}}<br>
reliable server function actorlist findinlist(actor A)
+
{{classgames|Ammunition}}<br>
{
+
{{classgames|Util}}<br>
  local array<stuff> heapsmorestuff;
+
{{classgames|xUtil}} -UE2??<br>
  local array< class<actor> > Rlist;
+
{{classgames|UnrealPlayer}}<br>
  local class<actor> fA;
+
{{classgames|xPlayer}} -UE2??<br>
  local int i;
+
{{classgames|UTPlayerController}}<br>
 
+
{{classgames|WeaponFire}}
  foreach A(fA)
+
<br>
  {
+
====Keyword Key====
    Rlist.Additem(fA);
+
{{classgames|Expands}}<br>
    kk="blehke: "$fA;
+
{{classgames|Extends}}<br>
  }
+
{{classgames|server}}<br>
   
+
{{classgames|replicated}}<br>
  for(i=0;i<morestuff.length;i==)
+
{{classgames|intrinsic}}<br>
  {
+
      heapsmorestuff[i]=default.morestuff[i];
+
  }
+
 
+
  if(Rlist != None)
+
    return Rlist;
+
+
  if(bEndnow && bNetInitial)
+
      return fA;
+
}
+
+
defaultproperties{
+
  FOOBOO='Mush Strings for mah shoez!'
+
}
+
</uscript>
+

Latest revision as of 07: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 07: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)