CaptainSnarf
12-14-2007, 12:53 PM
I found these docs:
http://unreal.epicgames.com/UnrealScript.htm
http://udn.epicgames.com/Three/UnrealScriptReference.html
Unfortunately the first says "Last Updated: 12/21/98". The second is missing some basic info.
Here's a sample mutator:
class MultiJump extends UTMutator Config(Game);
var() config int iMaxNumJumps;
var() config int iMaxJumpBoost;
function ModifyPlayer(Pawn P)
{
if ( UTPawn(P) != None )
{
// Increase the number of times a player can jump in mid air
UTPawn(P).MaxMultiJump = iMaxNumJumps;
UTPawn(P).MultiJumpRemaining = iMaxNumJumps;
// Also increase a bit the amount they jump each time
UTPawn(P).MultiJumpBoost = iMaxJumpBoost;
}
Super.ModifyPlayer(P);
}
defaultproperties
{
bExportMenuData=False
GroupNames(0)="MULTIJUMP"
Begin Object Name=Sprite ObjName=Sprite Archetype=SpriteComponent'UTGame.Default__UTMutato r:Sprite'
ObjectArchetype=SpriteComponent'UTGame.Default__UT Mutator:Sprite'
End Object
Components(0)=Sprite
Name="Default__MultiJump"
}
Is there any documentation for the "Begin Object" line? What are all the parameters? Name vs ObjName? Archetype? ObjectArchetype? I can make educated guesses about this stuff but some docs would be nice! :) wtf is archetype!!? Why does the exported script also include a 'Class=' parameter in the Begin Object lines, but the Class= must be removed in order for it to compile? Help! :D
http://unreal.epicgames.com/UnrealScript.htm
http://udn.epicgames.com/Three/UnrealScriptReference.html
Unfortunately the first says "Last Updated: 12/21/98". The second is missing some basic info.
Here's a sample mutator:
class MultiJump extends UTMutator Config(Game);
var() config int iMaxNumJumps;
var() config int iMaxJumpBoost;
function ModifyPlayer(Pawn P)
{
if ( UTPawn(P) != None )
{
// Increase the number of times a player can jump in mid air
UTPawn(P).MaxMultiJump = iMaxNumJumps;
UTPawn(P).MultiJumpRemaining = iMaxNumJumps;
// Also increase a bit the amount they jump each time
UTPawn(P).MultiJumpBoost = iMaxJumpBoost;
}
Super.ModifyPlayer(P);
}
defaultproperties
{
bExportMenuData=False
GroupNames(0)="MULTIJUMP"
Begin Object Name=Sprite ObjName=Sprite Archetype=SpriteComponent'UTGame.Default__UTMutato r:Sprite'
ObjectArchetype=SpriteComponent'UTGame.Default__UT Mutator:Sprite'
End Object
Components(0)=Sprite
Name="Default__MultiJump"
}
Is there any documentation for the "Begin Object" line? What are all the parameters? Name vs ObjName? Archetype? ObjectArchetype? I can make educated guesses about this stuff but some docs would be nice! :) wtf is archetype!!? Why does the exported script also include a 'Class=' parameter in the Begin Object lines, but the Class= must be removed in order for it to compile? Help! :D