Noobie Questions...

Right, I want to learn scripting (because I would already have mastered mapping, or at least most of it...) but for me to get the hang of moving away from default properties I need to understand some of the things in the script...
I see that appear quite alot...what is the BeginPlay() thing for...or is that just a default name for a function that everyone uses because it is the easiest thing to remember (i.e. JavaScript where you can make up your own functions)
What is the "Super." prefix for?
Also see when you add all this stuff, for example I got this from "LeatherCouch" and I notice I see one of the conditionals of JavaScript (I have to keep comparing everything to JavaScript to help me understand)
Now I understand that to a certain extent...but what I dont understand is why it gets placed in a special area (i.e. When your mapping and you bring up the properties, you notice that it comes up in "CouchLeather"....why?)
More Questions:
I never bothered learning everything in JavaScript..(i'm sorry to keep going back to it...but It's the closest thing I can relate to it) so what is the point of the boolean and where does it come into the actual thing you are setting up bolleans for?
- Code: Select all
function BeginPlay()
I see that appear quite alot...what is the BeginPlay() thing for...or is that just a default name for a function that everyone uses because it is the easiest thing to remember (i.e. JavaScript where you can make up your own functions)
- Code: Select all
Super.BeginPlay();
What is the "Super." prefix for?
Also see when you add all this stuff, for example I got this from "LeatherCouch" and I notice I see one of the conditionals of JavaScript (I have to keep comparing everything to JavaScript to help me understand)
- Code: Select all
switch (SkinColor)
{
case SC_Black: Skin = Texture'CouchLeatherTex1'; break;
case SC_Blue: Skin = Texture'CouchLeatherTex1'; break;
case SC_Brown: Skin = Texture'CouchLeatherTex1'; break;
case SC_LitGray: Skin = Texture'CouchLeatherTex1'; break;
case SC_Tan: Skin = Texture'CouchLeatherTex1'; break;
}
Now I understand that to a certain extent...but what I dont understand is why it gets placed in a special area (i.e. When your mapping and you bring up the properties, you notice that it comes up in "CouchLeather"....why?)
More Questions:
I never bothered learning everything in JavaScript..(i'm sorry to keep going back to it...but It's the closest thing I can relate to it) so what is the point of the boolean and where does it come into the actual thing you are setting up bolleans for?
- Code: Select all
var() bool bOneWay; // this door can only be opened from one side
var() bool bLocked; // this door is locked
var() bool bPickable;