2007.10.21, 07:44 PM
2007.10.21, 08:21 PM
No. Learn how to do it yourself.
2007.10.21, 08:49 PM
Sorry but do you REALLY need that??
Just learn to script. It's fun!
API are like built in functions. You can find them in the documentation.
Example of API:
Just learn to script. It's fun!

Code:
some basics:
//THIS IS A COMMENT
function foo123(APIs to load) //THIS IS A FUNCTION
{
//code here
}
foo123(APIs to load); //goes to function foo123
if (condition) {
Do This
}
Example:
var a;//makes a variable called a
a=1;//makes a=1
if (a==1) { //if a=1 then do the following until the closing bracker
//API and other code goes here
} //closing bracket
You can also do
if (a==1) {
//code
} else{ //If a does NOT = 1 then
//code
}//closing bracket
Theres lots of other things you can do, but those are the basics.API are like built in functions. You can find them in the documentation.
Example of API:
Code:
obj.motionVector.turnToPlayer(); //note the capitalazation, this automatically makes the object keep turning towards the player.2007.10.21, 09:02 PM
so is there a list of commands and what they do?
2007.10.21, 09:07 PM
Yes!!

Thats the documentation, open the dim3 folder<documentation<index.html. Just open the index.html with a web browser and there they are
.

Thats the documentation, open the dim3 folder<documentation<index.html. Just open the index.html with a web browser and there they are
.2007.10.22, 02:44 PM
so events are the main basis for scripting?
2007.10.22, 02:49 PM
Think of it this way: Nothing can happen without events. Events are occurrances. In the event of an evacuation, run for your life screaming. In the event of a fire, kill people. Yah? For every event in the docs you can execute a function, custom or one in the api, set vars, unset vars, etc.
2007.10.23, 05:41 PM
thats what I thought
2007.11.04, 02:12 PM
so if I said
then I could use the inputed value of x in my function?
Code:
function blah(x)
{
}2007.11.04, 02:26 PM
Well, not exactly. function blah(x) loads API x
.
If you want to use a value, use a variable.
.If you want to use a value, use a variable.
Code:
var foo; //new variable called foo
foo=5; //set foo to 5
//OR, to make it simpler:
var foo=5; //make variable foo and set it to 5
if (foo==3) {
//do something
}
//(if foo = 3 do something)
foo='lol'; //variables can also be set to strings (text)
foo=true; //or booleans (true/false)