Skip to content

Ability to detect surface types #89

@mikecnr

Description

@mikecnr

@Crayder @NexiusTailer

Hi I'd like to request a feature to be added if it's possible. Can we please have the ability to detect the surface type that the casted ray hits? We currently get informed about the model, but the collision data holds information about the surface types too, no? Can this information be passed to PAWN by the plugin?

Obviously the game knows what surface type you are on for bullet hits and footstep sounds. It's part of the collision data.

https://wiki.mtasa.com/wiki/Material_IDs

For a use case example, I want to be able to detect when a player is standing on grass which will allow them to plant drugs.

Can you please let me know if and when this could potentially be added? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions