#how to make a trigger volume that when entering unless you move you take damage

1 messages · Page 1 of 1 (latest)

opaque bear
#

Can you retype that please

waxen dew
opaque bear
#

It makes no not much sense

waxen dew
#

basically

#

a trigger volume that when standing still inside it you take damage

#

but if you are moving while in it you dont take any damage

queen bison
#

Get velocity

opaque bear
queen bison
#

Vector get magnitude greater than X (however sensitive)

opaque bear
queen bison
#

Test if the list of players contains local player and their velocity is greater than 1

opaque bear
#

The arrows are the direction in which you wire them

waxen dew
#

I dont understand what you mean by list

opaque bear
queen bison
waxen dew
#

well what do I put in it

queen bison
#

It’s an output

#

So… nothing. It automatically fills out depending on if there is a player inside or not

opaque bear
#

Wore it into a List Contains

waxen dew
#

and the list contains goes into?

opaque bear
waxen dew
#

buddy

#

you act like I can understand that shi

opaque bear
#

Alright my bad

queen bison
#

List contains, local player

opaque bear
#

Just follow the arrows >

waxen dew
#

what does the get velocity go into

#

like

queen bison
#

Player

waxen dew
#

what goes into it

queen bison
#

Local player and vector get magnitude

waxen dew
#

wait so

#

this is what I got so far

queen bison
#

Local player for velocity not player entered

opaque bear
waxen dew
queen bison
#

and click on the thing that says invalid it’ll change it to local

#

Place down Local Player and use that

#

Or it might be called get local player idr

waxen dew
queen bison
#

Now do vector get magnitude

#

And put the velocity into it

#

And then wire the float into Greater Than comparing to 1

waxen dew
queen bison
waxen dew
#

and the and to?

queen bison
#

An if

waxen dew
queen bison
#

Then you can run your damage system, but before running it, run it through the IF

waxen dew
#

what damage system

#

lowkey

#

I dont got one

opaque bear
waxen dew
#

how do I do that again

opaque bear
#

There’s many youtube tutorials you can find

waxen dew
#

I already have a game chip

opaque bear
opaque bear
opaque bear
queen bison
#

Yeah but it’s funny that you recommend a YouTube video

opaque bear
queen bison
#

Damage system honestly very simple and easy if you don’t want to involve guns or weapons and purely just damage

opaque bear
queen bison
#

Do you plan on using guns or weapons?

opaque bear
#

It might it might not

waxen dew
#

not really

#

I dont like guns

queen bison
opaque bear
waxen dew
waxen dew
queen bison
#

Ok, place one down

#

Configure it and rename it to Health or something you’ll remember

waxen dew
#

k

queen bison
#

Then how often do you want the player to take damage

waxen dew
#

every 2 seconds while in it as long as they aren't moving

queen bison
#

Ok one sec

#

Do you know how to make a repeating circuit

waxen dew
#

no

queen bison
#

Ok, do Event Receiver: 30Hz > If(Greater or Equal)(Time Get Precise Seconds)(Float Variable) Then: Float Variable Add (Precise Seconds + 2)

waxen dew
#

??

#

what do I do

#

@queen bison

silver hearth
#

@waxen dew for now just use a delay chip. when the player enters the trigger volume, run the delay. when the player leaves the trigger volume, cancel the delay. make sure this trigger volume is NOT synced.

after the 2 second delay, if the local player's velocity is greater than 0, then subtract an amount from the your health (int variable). after that, loop it back into the delay chip "run" port.

waxen dew
#

oh quick question

#

is there a cv1 version

silver hearth
#

yea but i cant help you with that

#

i recommend cv2

waxen dew
#

hm

waxen dew
silver hearth
#

its kinda the same logic in cv1 and cv2, but cv2 is more reliable and robust

silver hearth
waxen dew
#

@silver hearth

silver hearth
#

close

waxen dew
#

well?

#

what do I do then

silver hearth
#

instead of using the list of players into get velocity (no idea how you did that btw) use a get local player chip. also, loop back the exec. make sure to decrease the int var by itself subtracted by the amount of damage you want done

waxen dew
silver hearth
waxen dew
#

the power of friendship

silver hearth
#

no clue how u did that

silver hearth
#

whoops, use the else output instead of then. also add a subtraction to the variable

#

set delay to 2 seconds

waxen dew
silver hearth
waxen dew
silver hearth
#

👏

#

congrats

waxen dew
#

it doesnt work

silver hearth
#

ur subtract is set to 0

waxen dew
#

I set it to 2

silver hearth
#

okay, show me

waxen dew
silver hearth
#

hover over the output of the int variable. whats the value?

waxen dew
#

-2

silver hearth
#

it works! you just dont "die" because you havent created code for that yet. if u want help with that dm me

waxen dew
#

I do want help with that

queen bison