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
(hmm, highlighter :()
Line 7: Line 7:
 
<uscript>
 
<uscript>
 
// paste your code here
 
// paste your code here
 +
</uscript>
 +
<br>
 +
<uscript>
 +
class highlightertest extends actor abstract;
 +
 +
`include(langconvert.uci)
 +
 +
// <--
 +
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>
 +
<uscript>
 +
class arraytest extends highlightertest;
 +
 +
var protected array< class<actor> > actorlist;
 +
 +
server function actorlist findinlist(actor A)
 +
{
 +
  local array< class<actor> > Rlist;
 +
  local class<actor> fA;
 +
   
 +
  foreach A(fA)
 +
  {
 +
    Rlist.Additem(fA);
 +
  }
 +
 +
  return Rlist;
 +
}
 +
 +
defaultproperties{
 +
 +
}
 
</uscript>
 
</uscript>

Revision as of 13:32, 27 March 2009

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 2009-03-27 13:32:12), 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


class highlightertest extends actor abstract;
 
`include(langconvert.uci)
 
// <--
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{
 
}


class arraytest extends highlightertest;
 
var protected array< class<actor> > actorlist;
 
server function actorlist findinlist(actor A)
{
   local array< class<actor> > Rlist;
   local class<actor> fA;
 
   foreach A(fA)
   {
     Rlist.Additem(fA);
   }
 
   return Rlist;
}
 
defaultproperties{
 
}