Kryz Posted August 23, 2024 Share Posted August 23, 2024 Does anyone knows the name of the "Search" action in the "actions.lua" file? The Marotter den was recently added, in order to get things out of there you must use the "Search" action in the den, I wanted to update a version I have of the ActionQueuer making the "Search" action automatable, but I don't know the name of the action in the .lua file to access it. I would like to know if someone could help me by giving me the name of the action. since I tried to search for it with the name "search" but it didn't appear, also not having much knowledge of English, I don't know what would be a synonym for searching for the "search" action. could someone be so kind as to help me by telling me what the "Search" action is called? Link to comment https://forums.kleientertainment.com/forums/topic/159161-does-anyone-knows-the-name-of-the-search-action-in-the-actionslua-file/ Share on other sites More sharing options...
-LukaS- Posted August 25, 2024 Share Posted August 25, 2024 The "Search" action uses the ACTIONS.PICK action. In the ACTIONS.PICK.fn you can see it checks for the searchable component: ACTIONS.PICK.fn = function(act) if act.target ~= nil then if act.target.components.pickable ~= nil then act.target.components.pickable:Pick(act.doer) return true elseif act.target.components.searchable ~= nil then return act.target.components.searchable:Search(act.doer) end end end 1 Link to comment https://forums.kleientertainment.com/forums/topic/159161-does-anyone-knows-the-name-of-the-search-action-in-the-actionslua-file/#findComment-1743533 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now