| Blockland Forums > Modification Help |
| Checking if you've killed someone. |
| << < (2/3) > >> |
| VerticalHorizon:
I know how to make .cs files, but I mean: Do you just paste scripts into one, enabled it and it changes the servers behavior? |
| MrPickle:
Yeah. For example the Death Package. --- Code: ---package DeathCheck { function GameConnection::onDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc) { if(isObject(%sourceClient.player)) { %sourceClient.player.mountImage(0,wrenchImage); } Parent::onDeath(%this, %sourceObject, %sourceClient, %damageType, %damLoc); } }; activatePackage(DeathCheck); --- End code --- Once thats enabled on the check list bit when ever you kill someone you will mount the wrench. Its a package activatePackage(DeathCheck); tells TGE to start running the pakcage. deactivatePackage(DeathCheck); would tell it to stop running that script. |
| VerticalHorizon:
Oh ok cool now I understand, thanks. :D |
| MrPickle:
Heres a good site that Randy gave me: http://www.garagegames.com/docs/tge/general/ch05s02.html |
| VerticalHorizon:
Wow this is great, thanks, this will help me out alot. |
| Navigation |
| Message Index |
| Next page |
| Previous page |