UE3 - UDK NEED to start scripting!

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

larafan25

New Member
Oct 11, 2008
75
0
0
Hello!

So I really need to learn how scripting works in the UDK.

So where inside my UDK folders would I find the documents and scripts that require changing?

I want to change controls, AI, inventory, etc....

Please help me.:)
 

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
UnrealScript source code is just plain text. Anything capable of saving plain text in ASCII format can be used. Word/Wordpad is not among those, but e.g. Notepad is, and the many many better text editors out there. You can also use a full IDE, like WOTgreal or nFringe.
 

larafan25

New Member
Oct 11, 2008
75
0
0
^Ok, thanks, I have notepad.:)

Edit:

BTW this...

UDNPawn.uc

class UDNPawn extends UTPawn;

var float CamOffsetDistance; //distance to offset the camera from the player
var int IsoCamAngle; //pitch angle of the camera

//override to make player mesh visible by default
simulated event BecomeViewTarget( PlayerController PC )
{
local UTPlayerController UTPC;

Super.BecomeViewTarget(PC);

if (LocalPlayer(PC.Player) != None)
{
UTPC = UTPlayerController(PC);
if (UTPC != None)
{
//set player controller to behind view and make mesh visible
UTPC.SetBehindView(true);
SetMeshVisibility(UTPC.bBehindView);
UTPC.bNoCrosshair = true;
}
}
}

simulated function bool CalcCamera( float fDeltaTime, out vector out_CamLoc, out rotator out_CamRot, out float out_FOV )
{
out_CamLoc = Location;
out_CamLoc.X -= Cos(IsoCamAngle * UnrRotToRad) * CamOffsetDistance;
out_CamLoc.Z += Sin(IsoCamAngle * UnrRotToRad) * CamOffsetDistance;

out_CamRot.Pitch = -1 * IsoCamAngle;
out_CamRot.Yaw = 0;
out_CamRot.Roll = 0;

return true;
}

simulated singular event Rotator GetBaseAimRotation()
{
local rotator POVRot, tempRot;

tempRot = Rotation;
tempRot.Pitch = 0;
SetRotation(tempRot);
POVRot = Rotation;
POVRot.Pitch = 0;

return POVRot;
}

defaultproperties
{
IsoCamAngle=6420 //35.264 degrees
CamOffsetDistance=384.0
}

I am not sure what file UDNPawn.uc is, all I know is it does not open as a text document, at least what I am finding, it's a class file right?
 
Last edited: