#how to make a trigger handle that when clicking on it something appears infront of you

1 messages · Page 1 of 1 (latest)

nova cliff
#

on trigger press > if (cooldown) else > set position (object, player position + player forward vector * (some number, depends on size of object)) > cooldown = true > delay (cooldown) > cooldown = false

#

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

pulsar hatch
nova cliff
pulsar hatch
#

on what

nova cliff
#

you set that to however many seconds you want your cooldown to be

pulsar hatch
#

k so what is the condition on the if

nova cliff
pulsar hatch
#

huh

nova cliff
#

connect that variable to the if

pulsar hatch
#

ok

nova cliff
#

connect "then" output from the if to the next steps

#

clone the bool variable and use those in last 3 steps

pulsar hatch
#

s othe then to the delay or?

#

so the then to the delay or*

nova cliff
#

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

nova cliff
pulsar hatch
#

yes

nova cliff
#

use the "clone" tool in your maker pen to clone it

pulsar hatch
#

ok

nova cliff
#

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

pulsar hatch
#

ok

nova cliff
#

clne that bool variable again and connect from delays "after delay" output to that new third clone

pulsar hatch
#

ok

#

true or false on 3rd bool clone

nova cliff
pulsar hatch
#

ok

nova cliff
#

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

pulsar hatch
#

k

nova cliff
#

the target input on "set position" chip is the object you want to teleport

pulsar hatch
#

so what does the end exec on the bools connect to

#

or do they not connect to anything

nova cliff
pulsar hatch
nova cliff
pulsar hatch
#

but thats connected to the if

nova cliff
pulsar hatch
#

well yeah but its connected to a different system I basically only need the cooldown

pulsar hatch
nova cliff
# pulsar hatch

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

pulsar hatch
nova cliff
pulsar hatch
#

ok

nova cliff
#

is "then" output connected to the stuff that needs to trigger when the thing is not on cooldown?

pulsar hatch
#

ye

nova cliff
#

then it should work properly

pulsar hatch
#

it does not

nova cliff
#

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

pulsar hatch
#

also

#

the "Then" on the if is connected to the actual thing I want to work with cooldown

nova cliff
pulsar hatch
#

then what does then go to

nova cliff
#

so it runs and stars the cooldown and while that cooldown is active it will not trigger again

nova cliff
pulsar hatch
#

now nothing happens at all

nova cliff
pulsar hatch
#

its like that

nova cliff
# pulsar hatch

set first bool to false and play it once (hold connect tool on first bools input)

#

this thing happens alot

pulsar hatch
#

1st bool already false

nova cliff
#

then try again

pulsar hatch
#

it works thanks so much 💚