#how to make a trigger handle that when clicking on it something appears infront of you
1 messages · Page 1 of 1 (latest)
you could also use a custom cooldown chip for less heat instead of bool shenanigans
just find one in invention and try to copy it
what do you mean by (cooldown)
set seconds to cooldown you want
on what
on the delay chip there's a float input
you set that to however many seconds you want your cooldown to be
k so what is the condition on the if
the bool variable you're setting at the end of the chain
huh
make a bool variable called "cooldown"
connect that variable to the if
ok
connect "then" output from the if to the next steps
clone the bool variable and use those in last 3 steps
then to the "set position" chip
then from "set position" chip to cloned bool variable to set it to true
then to delay
then "after delay" output to anothe cloned bool variable to set it to false
what
you made a bool variable
yes
use the "clone" tool in your maker pen to clone it
ok
and connect "set position" to that clones exec input
and click the red pin once so it says true
the connect from exec output to the delay
ok
clne that bool variable again and connect from delays "after delay" output to that new third clone
false
ok
for the "set position" thing:
you get players position by using "get position" and connecting player output of the trigger handle to the input of "get position" chip
you get players forward vector by using "get forward vector" and connecting player output from trigger handle to the input of "get forward vector" chip
then you just add the resulting 2 vectors together by using "add" chip and you connect result of that chip into the "set position" chips "position" input
k
the target input on "set position" chip is the object you want to teleport
so what does the end exec on the bools connect to
or do they not connect to anything
1st bool > nothing
2nd bool > delay
3rd bool > nothing
a new delay?
no, the old delay
but thats connected to the if
can you send a screenshot of your chips?
well yeah but its connected to a different system I basically only need the cooldown
oh
change of plans a bit then:
1st bool is good
connect 2nd bools input the "run" output of delay and dissconnect it from the other chip you have connected it to
3rd cooldown is good
yes
ok
is "then" output connected to the stuff that needs to trigger when the thing is not on cooldown?
ye
then:
set 2nd bool to false
set 3rd bool to ttrue
then it should work properly
it does not
oh wait
so:
2nd bool to true
3rd bool to false
if "then" output connects to nothing
connect the other stuff to the 2nd cool
and "on trigger press" to the if
also
the "Then" on the if is connected to the actual thing I want to work with cooldown
connect that thing to the 2nd bool
then what does then go to
so it runs and stars the cooldown and while that cooldown is active it will not trigger again
nothing
now nothing happens at all
2nd bool = true
3rd bool = false
if "then" connects to noothing
if "else" connects to delay
yeah I know that
its like that
set first bool to false and play it once (hold connect tool on first bools input)
this thing happens alot
1st bool already false
it works thanks so much 💚