Posts by Preach

    Hi, I think that for other events you can use getHealth and setHealth methods in player, but I'm not sure if they will show you damage animation or not

    Thanks for the fast reply, but I think there's a misunderstanding. What I'm looking for is a method which allows you to manipulate the incoming damage of vegatation entities (such as trees, plants, etc.).

    Basically I wanna multiply the damage by a given factor (which depends on the level) to simulate the strength as I mentioned above.

    Hey


    is there a specific reason why PlayerHitVegetationEvent doesn't have the SetDamage method? All the other hit events provide it for some reason (Check screenshot below). It would be nice to also have it for that event.


    HdAZ8pr.png


    Just in case if someone's asking for a good use case:

    I am currently working on a level system which supposed to give the player more strength (= damage, speed etc.) depending on their level. As you might guessed I need an method like that to alter the damage for vegatations as well.