simplex Posted December 26, 2014 Share Posted December 26, 2014 Bug Submission: Category: GeneralIssue Title: Custom (mod) remote left click action not working due to typoIssue Description: Within the method PlayerController:OnRemoteLeftClick, found in components/playercontroller.lua, we havelmb = (lmb == nil and actioncode == ACTIONS.WALKTO.code and mod_name == nil and BufferedAction(self.inst, nil, ACTIONS.WALKTO, nil, position)) or (lmb ~= nil and lmb.action.code == actioncode and lmb.action_mod_name == mod_name and lmb) or (rmb ~= nil and rmb.action.code == actioncode and rmb.action_mod_name == mod_name and rmb) or nilNote the 'lmb.action_mod_name' and 'rmb.action_mod_name'. The underscore before 'mod_name' should be a period. Because of this, remotely sent left click action with a non-nil mod_name field don't work.Steps to Reproduce: > Be a modder.> Write a mod with custom actions.> Set up such action as a component action triggered by a left click.> Join modded game as client.> Left click entity where such action should be triggered.> ???> Profit. Link to comment Share on other sites More sharing options...
Developer PeterA Posted January 2, 2015 Developer Share Posted January 2, 2015 @simplex, thanks for reporting this. Fixed now and you'll get it in the next patch. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.