There is no spoon

Difference between revisions of "Unreal Wiki:Scratchpad"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
Line 5: Line 5:
 
'''Clean up after you're done!'''
 
'''Clean up after you're done!'''
 
----
 
----
 
[[redlink]]
 
  
 
<uscript>
 
<uscript>
 
// paste your code here
 
// paste your code here
</uscript>
 
<br>
 
<h3>&&(</h3>
 
<uscript>
 
class morehighlightertests extends foobar abstract native nonreplication server;
 
 
static final function bool why (matrix M, vector V, class<UTWeapon> cW, array< class <stuff>> ScA)
 
{
 
// Physics
 
if( (!bSkipActorPropertyReplication || bNetInitial) && bReplicateMovement
 
&& ((RemoteRole == ROLE_SimulatedProxy) && (bNetInitial || bUpdateSimulatedPosition)) )
 
}
 
 
/* No highlighting for || */
 
 
if((stuff == 'madness')||((V == M)&&(cW=ScA[i])){}
 
</uscript>
 
 
<uscript>
 
reliable server function ServerRestartPlayer()
 
{
 
if (WorldInfo.NetMode != NM_Client &&
 
Pawn != None)
 
{
 
ServerGivePawn();
 
}
 
}
 
</uscript>
 
 
 
<uscript>
 
//Testing UScript Object_Structs highlighting
 
vector
 
matrix
 
rotator
 
enum
 
struct
 
vector2d
 
color
 
double
 
Quat
 
LinearColor
 
 
//Testing UScript Major Classes/common Var highlighting
 
Weapon
 
Other
 
Instigator
 
Actor
 
Controller
 
LightType
 
Level
 
WorldInfo
 
Pawn
 
PlayerController
 
Material
 
Texture
 
Effects
 
Info
 
 
Emitter
 
Projector
 
DamageType
 
GameInfo
 
GameRules
 
PlayerReplicationInfo
 
GameReplicationInfo
 
Inventory
 
Vehicle
 
StaticMesh
 
NavigationPoint
 
 
Component
 
ActorComponent
 
PrimitiveComponent
 
SVehicleSimBase
 
StaticMeshComponent
 
SkeletalMeshComponen
 
 
Sound
 
SoundNode
 
SoundCue
 
 
Spawn
 
 
// Testcing Uscript Secondary Syntax flags
 
Self
 
Owner
 
Optional
 
Out
 
Object
 
Native
 
 
Private
 
Protected
 
Localized
 
Config
 
GlobalConfig
 
RepNotify
 
Transient
 
 
Final
 
Server
 
Client
 
Simulated
 
Iterator
 
Operator
 
 
</uscript>
 
</uscript>

Revision as of 09:15, 18 January 2010

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 2010-01-18 09:15:46), 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