Author Topic: Knowing what else could be there... See what i mean inside.  (Read 553 times)

Ok so i am determined to script something incredible one day... but i have to find a way to start... I am in "Event_RemoveItem.zip/server.cs". The file is opened into notepad++ and i have this script:

Code: [Select]
//> ===>
//> Title: RemoveItem
//> Author: Truce
//> ===>

registerOutputEvent(Player,RemoveItem,"datablock ItemData\tbool",1);
function Player::removeItem(%this,%item,%bool,%cl) {
if(isObject(%this)) {
if(%item>0) {
for(%i=0;%i<5;%i++) {
%tool=%this.tool[%i].getID();
if(%tool==%item.getID()) {
%this.tool[%i]=0;
messageClient(%cl,'MsgItemPickup','',%i,0);
if(%this.currTool==%i) {
%this.updateArm(0);
%this.unMountImage(0);
}
if(!%bool)
break;
}
}
}
}
}
Ok so i have used SCAR, maybe you have heard of it maybe not, but in scar they have a thing (as well as visual basic) that when you hold control and press the space bar it will give you a scroll down menu that tells you, you can uses the following things in you function. Well obviously notepad++ doesn't have those functions for torque. So i need some kind of easy reference when learn and writing scripts.
So in that code above /\ we have a line that says...

Code: [Select]
registerOutputEvent(Player,RemoveItem,"datablock ItemData\tbool",1);

I want to know is how this works registerOutputEvent(???,???,"???",???);
What does it mean? (the questions marks)
« Last Edit: June 22, 2010, 11:05:32 PM by tyler0 »