Postby Emral » Tue Sep 24, 2019 6:17 am
Bumping routes through the onBlockHit function
function onBlockHit(eventObj, hitBlockObject, fromUpperSide, playerOrNil)
...
end
Use like onNPCHarm and onNPCKill.
For the block property settings, lua is required at the moment. You can manipulate them with Block.config
Examples:
Block.config[751].bumpable = true
Block.config[752].semisolid = true
Block.config[753].floorslope = 1 (or -1, depending on direction)
There's also ceilingslope (works same as floorslope), passthrough (nonsolid), pswitchable, sizeable, and lava (all booleans), as well as frames (int) and the 5 darkness related fields that also exist for NPCs and BGOs (lightoffsetx, lightoffsety, lightradius, lightbrightness, lightcolor)