#How do i make a certain mechanic where enemies only move when you look away?
28 messages · Page 1 of 1 (latest)
Vector dot + raycast
im trying to figure that out. Do you have a chart or anything that might help?
dang
i am, its frustrating
cause im new to this type of thing but ik i can get it working in the future
just dont know how
if you can, that would be great
thanks man
im trying to get the mechanic for my personal redesign of scp-173
A vector3 dot method would be the most reliable. Just only run the ai if the vector3 dot value is NOT greater or equal to 0.5 (So just use the Else output on the If to run it.)
Yea adding a raycast or spherecast could check if there are any walls/obstacles between the player and monster. If u don’t add this, the monster will stop moving when being looked at, even if behind a wall.
what components are the first two labeled, object and player?
It’s just an object variable and player variable. You don’t actually need those, it’s just to represent where the object and player outputs should be wired. With the object being the monster btw.
i would still like to use them just in case
this all seems simple, it's just that im more of a builder than a component builder so im having more trouble than most
There’s no need to use them at all. They could break things in multiplayer, and use additional cpu and net.
I just gave u the base circuits. I can’t really help any further, as there are a lot of things to determine that. For example, some things would have to be changed for multiplayer, and it really just depends on the room.
so, i found a more scuffed way to do it but its probably the best ill get rn. i basically just set it up on a timer for the blinking and everytime you blinks, itll move to the local player