Skip to content

Instead of hard coded controls perhaps do this: #105

@ADM8

Description

@ADM8

In the config for each vehicle there is a "trigger" section where there are the vehicle controls (pitch up, pitch down, shoot, move forward, push on the gas, move backwards, etc.) and then next to it you can add in an input (mouse_move_up, mouse_move_down, walk_forward, walk_left, drop item, sneak, sprint, etc.) Then the person using the plugin can design their own appropriate control scheme solution for their cars, planes, helicopters, etc.
An example of this from a different plugin that involves guns:
Reload:
Trigger:
Main_Hand: "DROP_ITEM"
Off_Hand: "DROP_ITEM"
Scope:
Trigger:
Main_Hand: "LEFT_CLICK"
Off_Hand: "LEFT_CLICK"
Shoot:
Trigger:
Main_Hand: "RIGHT_CLICK"
Off_Hand: "RIGHT_CLICK"
(obviously off hand wouldn't matter here but something where there is a vehicle action that then can have a customized player action to correspond to it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions