Author Topic: How do I disable the "changeDatablock" event?  (Read 1390 times)

I remember Mr. Wallet told me something about this once, but now I forgot it. :(
« Last Edit: June 07, 2009, 01:05:41 PM by Quartz »

Code: [Select]
function armor::changeDatablock(%this,%data)
{
     return;
}

You can also put an if if you want a toggle.

Code: [Select]
function armor::changeDatablock(%this,%data)
{
     return;
}

You can also put an if if you want a toggle.

It's a Player method, not Armor.

Code: [Select]
function Player::changeDatablock(%this,%data)
{
     return;
}
This? Well this way wasn't what I expected.

Code: [Select]
function Player::changeDatablock(%this,%data)
{
     return;
}
This? Well this way wasn't what I expected.
well thats what works, you didnt really specify that much on how it would work, what its for, etc.

well thats what works, you didnt really specify that much on how it would work, what its for, etc.
There are 2 ways to do this.
  • First, you could make the function not work.
  • Second, you could REMOVE the event from the list.

There are 2 ways to do this.
  • First, you could make the function not work.
  • Second, you could REMOVE the event from the list.
I don't think you CAN remove it.

export("$*","Add-Ons/variablesnstuff.cs");

The events list is in there somewhere.

We could use an Add-On to disable certain events, maybe.

I don't think you CAN remove it.
You CAN. >:D
Ever played Rise of Blockland before?
« Last Edit: June 07, 2009, 03:06:44 PM by Quartz »

I found this in the dumpConsoleFunctions() output:

Code: [Select]
   virtual Script unRegisterOutputEvent() {}

Seeing how unregisterInputEvent("fxDTSBrick","onActivate"); worked for the script Event_Owner... I bet unregisterOutputEvent("fxDTSBrick","ChangeDatablock"); would work.

You CAN. >:D
Ever played Rise of Blockland before?
...Are you talking about RtB which stands for RETURN TO BLOCKLAND?

...Are you talking about RtB which stands for RETURN TO BLOCKLAND?

No, Mr. Wallet has a mod called Rise of Blockland. Pretty fun.