#Auto Turret

1 messages · Page 1 of 1 (latest)

upbeat hull
#

make a turret that has a gun part clamped separately from the base
check every second or so who has the flag of turrets team
if someone has the flag you check if that person is from opposing team
if they are, you do a raycast from turret to that person
if that raycast hits said person you rotate the gun to [(targets position + (targets velocity * (distance between turret and taget / speed of projectile))) - turret position]
when it looks at that target (use "vector3 dot" between direction where turret should look and current direction of turret, and see if it's bigger than around 0.8-0.9) you shoot the projectile launcher thats clamped to the gun

before you ask, no i wont do allat in recroom to show you a screenshot

mild flax
#

I just hse the Look At gizmo lol

#

The best way to do it

#

Or at least the simplest

#

Its simple it works… kinda

iron ember
#

CV1 and “best” in the same sentence 💔💔💔

mild flax
#

Its good enough for what I need it for, I’m using trigger volumes and shot

iron ember
#

I won’t deny that it’s the simplest but if you want a turret that doesn’t clip into anything it is def not the best solution

#

You could even make a turret that snaps to a grid when it rotates and give it that threatening feel to it

upbeat hull
mild flax
#

Its fine lol

trail jackal
trail jackal
iron ember
#

“Pathetic” u nt skprre

trail jackal
upbeat hull
mild flax
#

CV1 is the best (as in easiest to use) when accuracy isnt a concern

#

Like with a security canera prop that is there for fun, thte Look At gizmo will do just fine

mild flax
barren cove
mild flax
#

CV1 is easier in some parts

upbeat hull
mild flax
#

CV1 is the best for simple stuff and CV2 handles the rest theyre like a dynamic duo

upbeat hull
#

cv2 is good for everything and much easier to debug

alpine thorn
#

If you know how to do Cv2, there is no reason to use Cv1

If you dont know Cv2 but know Cv1, there is no reason to do Cv1 and you should learn Cv2

If you know nothing, learn Cv2 and forget about Cv1's existence

mild flax
#

One works the other tries

alpine thorn
#

The only thing Cv1 makes 'simpler' is game rules, since you place a single chip and configure it, and all the sudden prop weapons do damage

Is this better? No, despite the fact its a bare minimum for combat rules, its a pain in the ass to work with for anything that isnt endless FFA combat

#

Bare minimum Cv2 game rules are not at all hard to make, and they do exactly what you tell them, and can be custom fit for your game

upbeat hull