MZ Sidescroller plugin: Gravity Issues with Enemies

Hello RPG Maker Community,

Im using pgeogheg/RPGMaker-Side-Scroller-Plugin and by default this Plugin gives only the player a gravity function not events.
But if I turn this to true:

var _Game_CharacterBase_initMembers = Game_CharacterBase.prototype.initMembers;
Game_CharacterBase.prototype.initMembers = function() {
_Game_CharacterBase_initMembers.call(this);
this._gravity = false;
}


all the events in the game get gravity
but Im using the cross engine in RMMZ so all the abilites and attacks also get effected by It because they are events.
on the Thread called: "Difficulty with Making Wandering Monsters for a Sidescroller" it was advised to set the _gravity property to true on an event with a script call but I can't seem to figure out what exactly to write.

I think I'd be something like: setValue.game_characterbase_gravity = true; but that doesn't work.

Help would be much appreciated 🙂

(Its my first post sry if I posted it in the wrong place)
Welcome!

You can do that with a script call in an event that says
Code:
this.character()._gravity = true;
Thx a lot! works perfectly

Original thread: https://forums.rpgmakerweb.com/threads/sidescroller-plugin-gravity-issues-with-enemies.169695/