@ross.grams Beat me to it!
You’d have to make a count within the on_input function. Input triggers act like a baseball player. They catch it from outfield (Your devices, mouse, keyboard, etc) and throw it back to the pitcher (The input function). Not much else besides the positioning (for mouse inputs) and etc.
So, you’d have to do this within the on_input function, for just one action; the mouse_click.
function init(self)
msg.post("." "acquire_input_focus") -- This tells the game to send input information to this script
function on_input(self, action_id, action)
if action_id == "mouse_click" then
mouse_presses = mouse_presses + 1
if mouse_presses == 3 then
object_move = true
mouse_presses = 0
end
end
end
This is just an example to show you along what lines to go. You’d have to design the script yourself to your personal needs.
P.S: I notice you’re trying to use the triggers as different object presses. It doesn’t work that way. The triggers only receive the information coming from your devices, not the game. You’d have to then use that information to see if a folder, cabinet, chair, cup, or use was underneath the pointer at that point.