O Ilusionista
Captain 100K
I recently replaced an "antiwall" animation script on my projectiles with an onblockwscript solution, which simply switches the projectile to another animation, nothing more.
It works very well, but I noticed that onblockwscript (and onblockoscript and onblockpscript as well) have a peculiar behavior: they are events that fire if the entity is blocked by a wall, but are not fired if the entity is already inside a wall.
This video demonstrates this behavior:
I remember having the same problem with "onmovez" scripts and projectiles that would leave the level's maximum zone if they were already created outside the maximum zone, and at the time I had to force this with an update script.
Is this the expected behavior for this type of event, or is it a version 3.0 issue? (I haven't tested it in V4.)
edit: a little more info
In the first video, the wall in front of the entity is low, so the engine moves the entity onto it. But in the video below, the wall is high (6000px), and when the engine detects an entity is inside a high wall, it is automatically removed.
It appears this behavior is triggered before the onblockwscript is triggered.
EDIT2: once I add an animation script, the arrow isn't stuck anymore (althought it doesn't jump back anymore too)
It works very well, but I noticed that onblockwscript (and onblockoscript and onblockpscript as well) have a peculiar behavior: they are events that fire if the entity is blocked by a wall, but are not fired if the entity is already inside a wall.
This video demonstrates this behavior:
I remember having the same problem with "onmovez" scripts and projectiles that would leave the level's maximum zone if they were already created outside the maximum zone, and at the time I had to force this with an update script.
Is this the expected behavior for this type of event, or is it a version 3.0 issue? (I haven't tested it in V4.)
edit: a little more info
In the first video, the wall in front of the entity is low, so the engine moves the entity onto it. But in the video below, the wall is high (6000px), and when the engine detects an entity is inside a high wall, it is automatically removed.
It appears this behavior is triggered before the onblockwscript is triggered.
EDIT2: once I add an animation script, the arrow isn't stuck anymore (althought it doesn't jump back anymore too)
Last edited: