Author Topic: Overriding Blockland's Max Defaults  (Read 841 times)

 How would I override the default for an event like setplayerscale?

  ex: I want to increase the maximum size you can go in setplayerscale, the default is 2, how would I be able to get bigger WITHOUT setplayerscale XYZ or Mission Editor.

Tom

The event is most likely in a encrypted file, so you wouldn't be able to just change it.

The event is most likely in a encrypted file, so you wouldn't be able to just change it.
No. Use packages.

Code: [Select]
package PlayerScaleOveride
{
   function Player::setPlayerScale(%player,%size)
   {
   // Not sure if this is how the event works, [s]don't use events much[/s] yay it is.
      if(%size > 2)
      {
         %player.setScale(%size SPC %size SPC %size);
      }
      else
      {
         Parent::setPlayerScale(%player,%size);
      }
   }
};
activatePackage(PlayerScaleOveride);
You would also need to re register the event.

Do some export()s and look through the $OutputEvent variables to find out how the parameters are stored, then make a macro/script to search through them and find the ones corresponding to the events you want to edit and change them automatically.

You're missing a crucial check:

Code: [Select]
if(%size > 2 && %size <= 5)