Skip to content

Fix NWNX_Player_SetPlaceableUsable(), to enable 'use' action on place…#1865

Open
alfa050moonshaes wants to merge 2 commits intonwnxee:masterfrom
alfa050moonshaes:master
Open

Fix NWNX_Player_SetPlaceableUsable(), to enable 'use' action on place…#1865
alfa050moonshaes wants to merge 2 commits intonwnxee:masterfrom
alfa050moonshaes:master

Conversation

@alfa050moonshaes
Copy link
Copy Markdown

…ables that have been set to useable using this function

Code written by Daztek - see the following thread for details: https://nwn.zulipchat.com/#narrow/channel/574443-nwnx/topic/NWNX_Player_SetPlaceableUsable.20in.20OnAreaEnter.20not.20working/near/579766652

Note that (as I understand it) this means the engine will treat any use event on a placeable as permissible when a player has actually been able to click on the placeable. It bypasses the checks the engine would usually make as to whether or not the placeable is designated 'useable'. This is based on the assumption that the player will only ever be able to click on a placeable when it is set to be useable for them.

…ables that have been set to useable using this function

Code written by Daztek - see the following thread for details: https://nwn.zulipchat.com/#narrow/channel/574443-nwnx/topic/NWNX_Player_SetPlaceableUsable.20in.20OnAreaEnter.20not.20working/near/579766652

Note that (as I understand it) this means the engine will treat any use event on a placeable as permissible when a player has actually been able to click on the placeable. It bypasses the checks the engine would usually make as to whether or not the placeable is designated 'useable'. This is based on the assumption that the player will only ever be able to click on a placeable when it is set to be useable for them.
(previous commit did not allow OnClicked event to fire; updates from Daz in this commit now mean that both OnClicked and OnUsed events fire properly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant