| Blockland Forums > Modification Help |
| Knowing what else could be there... See what i mean inside. |
| (1/1) |
| tyler0:
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: ---//> ===> //> 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; } } } } } --- End code --- 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: ---registerOutputEvent(Player,RemoveItem,"datablock ItemData\tbool",1); --- End code --- I want to know is how this works registerOutputEvent(???,???,"???",???); What does it mean? (the questions marks) |
| Amade:
There's a sticky for this :\ http://forum.blockland.us/index.php?topic=40631.0 |
| tyler0:
--- Quote from: Amade on June 22, 2010, 11:33:34 PM ---There's a sticky for this :\ http://forum.blockland.us/index.php?topic=40631.0 --- End quote --- lol great... thanks tho :) |
| Navigation |
| Message Index |