Is there an Unreal Script Refrence?
Ok first of all I have no experience with programming at all, so please don't assume I know something, but also don't write me off as unhelpable, because I'm a very fast learner.
Ok so I took a break from trying to understand unrealscript for a while and decided to mess around with kismet instead. This was a good idea cause I think I got a better understanding of how unrealscript works, but I'd like someone to tell me if I'm right or wrong.
Basically, what I think is going on is when you create a new script, you declare variables, which are the things that stuff can happen to, then you plot out all the "if this, then that" which can happen to those variables, right?
If that's the case, is there a list somewhere that has all the varibles you can use, and what they are, and more importantly is there a list somewhere that has all the "if's" and "then's" and what they do?
I'm kinda looking for something like the Unreal Kismet Reference, but for Unreal Script.
Also, is it possible to create new variables (other than classes) or does that require access to the source code?
Last edited by sargos7; 12-15-2010 at 10:09 AM.
Reason: added after edit:
Awesome, thankyou very much... so do I have the basic idea of it then?
Well if I dont this looks like it will teach me, hehe.
Theres actually a link right up the top of this page (not sure if its on everyones page) but it says documentation.
As for your question regarding variables, yes you can create new variables. When you do this:
you create a new integer instance member variable called "SomeNumber". When you declare a variable inside a function you use "local" instead of "var". In UnrealScript all objects except for the primitive types are objects. The primitive types are byte, int, bool, float, string, constant, enumeration, name and delegate. (The list might be incomplete).
Listing "all variables you can use in the UDK" would not be smart since the list would be very very long. However, with something like UncodeX you can list all classes included in the engine, and for every class you can list all members.
Adding to unvestigate's list, Vector and Rotator are common variable types (technically they're structs - predefined packages of variables). They're used for expressing position and rotation of meshes, and you'll see them everywhere if you start reading over the Pawn, Camera, Controller, or KAsset classes, which are all good places to start.