I love the smell of UnrealEd crashing in the morning. – tarquin

Difference between revisions of "Unreal Wiki:Scratchpad"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
 
(12 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 newhighlightertest extends actor abstract;
 
  
struct stuff{  var actor more;};
+
====Full Key====
var array<stuff> morestuff;
+
* <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 protected string FOOBOO;
+
* <sup>2+</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]], from this version onwards.
var protected array< class<actor> > actorlist;
+
* <sup>2x</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 2]], starting with [[UT2004]].
var globalconfig bool bEndnow;
+
* <sup>3</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]].
var globalconfig string kk;
+
* <sup>3+</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]], starting with [[UT3]] patch 2.0.
 
+
* <sup>3*</sup> &ndash; {'''$Topic''' is relevant/available to/in} [[Unreal Engine 3]], starting with [[UDK]].
reliable server function testfunc(actor A){ /* ... */ }
+
* (no number) &ndash; {'''$Topic''' is relevant/available to/in} all Unreal Engine generations.
unreliable client function testerfunc(actor A){// /* ... */ }
+
}
+
 
+
reliable server function actorlist findinlist(actor A)
+
{
+
  local array<stuff> heapsmorestuff;
+
  /*local array< class<actor> > Rlist;
+
  local class<actor> fA;
+
  //local int i;
+
 
+
  /*foreach A(fA)  {     Rlist.Additem(fA);    kk="blehke: "$fA;  }*/
+
*/
+
   
+
  for(i=0;i<morestuff.length;i==)  {      heapsmorestuff[i]=default.morestuff[i];  }
+
 
+
  if(Rlist != None)    return Rlist;
+
+
  if(bEndnow && bNetInitial)      return fA;
+
}
+
 
+
unreliable client function actorlist findinnolist(actor A)
+
{
+
  local array<stuff> heapsmorestuff;
+
  local array< class<actor> > Rlist;
+
  local class<actor> fA;
+
  //local int i;
+
 
+
  /*foreach A(fA)  {     Rlist.Additem(fA);    kk="blehke: "$fA;  }*/
+
   
+
  for(i=0;i<morestuff.length;i==)  {      heapsmorestuff[i]=default.morestuff[i];  }
+
 
+
  if(Rlist != None)     return Rlist;
+
+
  if(bEndnow && bNetInitial)      return fA;
+
}
+
 
+
</uscript>
+
 
<br>
 
<br>
<uscript>
+
====Enum Key====
class highlightertest extends actor abstract;
+
{{classgames|Vector}}<sup>--|</sup><br>
 
+
{{classgames|Range}}<sup>--|'''2'''</sup><br>
`include(langconvert.uci)
+
{{classgames|Vector2D}}<sup>--|'''3'''</sup><br>
 
+
{{classgames|Color}}<br>
// <--
+
{{classgames|LinearColor}}<br>
var bool testthisway;    ///what about this
+
var bool testthisnoway;    // I should be [green]
+
var bool testthis;      //I DON'T know whats happenin man
+
var `colour greytext;
+
var `colour greentext;  //Im not green :S
+
 
+
default properties{
+
 
+
}
+
</uscript>
+
 
<br>
 
<br>
<uscript>
+
====Class Key====
class arraytest extends highlightertest;
+
{{classgames|Actor}}<br>
+
{{classgames|Rook}}<br> - TribesV?
struct stuff
+
{{classgames|SoundCue}}<br>
{
+
{{classgames|UTGreedGame}}<br>
  var actor more;
+
{{classgames|LegendObjectComponent}}<br>
};
+
{{classgames|FluidSurfaceOscillator}}<br>
var array<stuff> morestuff;
+
{{classgames|Ammunition}}<br>
 
+
{{classgames|Util}}<br>
var protected string FOOBOO;
+
{{classgames|xUtil}} -UE2??<br>
var protected array< class<actor> > actorlist;
+
{{classgames|UnrealPlayer}}<br>
var globalconfig bool bEndnow;
+
{{classgames|xPlayer}} -UE2??<br>
var globalconfig string kk;
+
{{classgames|UTPlayerController}}<br>
+
{{classgames|WeaponFire}}
reliable server function actorlist findinlist(actor A)
+
<br>
{
+
====Keyword Key====
  local array<stuff> heapsmorestuff;
+
{{classgames|Expands}}<br>
  local array< class<actor> > Rlist;
+
{{classgames|Extends}}<br>
  local class<actor> fA;
+
{{classgames|server}}<br>
  local int i;
+
{{classgames|replicated}}<br>
 
+
{{classgames|intrinsic}}<br>
  foreach A(fA)
+
  {
+
    Rlist.Additem(fA);
+
    kk="blehke: "$fA;
+
  }
+
   
+
  for(i=0;i<morestuff.length;i==)
+
  {
+
      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)