Author Topic: Getting the killer of a bot.  (Read 2263 times)

Its just an object that you can't see. It's really not hard to comprehend, imagine a scriptobject is a staticshape, but you cant see it or touch it, ok? They both work exactly the same from the script side of things (except it has a datablock but forget about that).

Solved.

I kinda get what they are, I'm just confused about what happens when you do
Code: [Select]
%blah = new scriptObject(){
blah = "blah";
}

Is it like
Code: [Select]
%blah = new StaticShape(){
datablock = blah;
}



Code: [Select]
%bot.minigame = new scriptObject(){};
Umm...

You wouldn't want to do it that way because minigames are already script objects.  IE, if you create a minigame and set it to $RPGMini, $RPGMini refers to the object number of a script object containing the properties of that minigame.

With your blah examples, anything you define within the brackets becomes a tagged field.  Just like dataBlock is a tagged field (one of several in a set of default variables for that type of object) of a staticShape, minigame can be a tagged field of your botClient.

Hmm, Ok.

What's a simSet?

I found this in a file:
Quote
Code: [Select]
new SimSet(Spawns);
« Last Edit: November 09, 2007, 01:45:14 PM by MrPickle »

It's a way of grouping similar types of objects.  There's a group for bricks, a group for spawns, a group for clients, etc.

is that what getGroup does? Gets the simSet it's in?


There's so much i don't know, I might go indulge myself in advanced tutorials.

Quote
It's a way of grouping similar types of objects.  There's a group for bricks, a group for spawns, a group for clients, etc.
Isn't that new SimGroup(){}?

I think there's one simset with multiple simgroups.