# Mouse Clicked World Pos X

Grammar — Mouse X position clicked in the world
FlagsNative | Function

Returns the mouse position clicked in the X axis. Use in response to a “Mouse Clicked” event.

Returns — fixed

native fixed EventMouseClickedPosXWorld();

# Supported triggers

Category: UI / Input

# Examples

mods/heromods/yrel.stormmodbase.stormdata/LibHYRL.galaxy:355


    if ((UnitHasBehavior2(lv_heroUnit, "YrelRighteousHammerChannelBuff") == true)) {
        UnitIssueOrder(lv_heroUnit, OrderTargetingPoint(AbilityCommand("YrelRighteousHammer", 0), Point(EventMouseClickedPosXWorld(), EventMouseClickedPosYWorld())), c_orderQueueReplace);
        return true;
    }

mods/heromods/yrel.stormmodbase.stormdata/LibHYRL.galaxy:360


    if ((UnitGetType(libGame_gv_players[lv_playerID].lv_heroUnit) == "HeroAbathur") && (UnitHasBehavior2(libGame_gv_players[lv_playerID].lv_activeVehicle, "YrelRighteousHammerChannelBuff") == true)) {
        UnitIssueOrder(libGame_gv_players[lv_playerID].lv_activeVehicle, OrderTargetingPoint(AbilityCommand("YrelRighteousHammer", 0), Point(EventMouseClickedPosXWorld(), EventMouseClickedPosYWorld())), c_orderQueueReplace);
    }

mods/heromods/yrel.stormmodbase.stormdata/LibHYRL.galaxy:449


    if ((UnitHasBehavior2(lv_heroUnit, "YrelAvengingWrathChannelBuff") == true)) {
        UnitIssueOrder(lv_heroUnit, OrderTargetingPoint(AbilityCommand("YrelAvengingWrath", 0), Point(EventMouseClickedPosXWorld(), EventMouseClickedPosYWorld())), c_orderQueueReplace);
        return true;
    }

mods/heromods/yrel.stormmodbase.stormdata/LibHYRL.galaxy:454


    if ((UnitGetType(libGame_gv_players[lv_playerID].lv_heroUnit) == "HeroAbathur") && (UnitHasBehavior2(libGame_gv_players[lv_playerID].lv_activeVehicle, "YrelAvengingWrathChannelBuff") == true)) {
        UnitIssueOrder(libGame_gv_players[lv_playerID].lv_activeVehicle, OrderTargetingPoint(AbilityCommand("YrelAvengingWrath", 0), Point(EventMouseClickedPosXWorld(), EventMouseClickedPosYWorld())), c_orderQueueReplace);
    }