Tank is missing the target

Plug this into that over there...
Post Reply
User avatar
Sandhesten
Posts: 16
Joined: 21 Apr 2019 06:25

Tank is missing the target

Post by Sandhesten » 09 May 2019 19:04

Originally posted by Zabusa
its a scout alien, you go to database texture and upload the alien.xml
then under archetype entity its the scout folder...but can anyone help,
the guy shoots now but he isnt hitting the alien at all
The tank is trying to shoot at the pivot point of the alien, that is
why he isn´t hitting it. Try selecting the alien, you will see that the
pivot point probably is below the body of the alien.
Try doing the following:
-Add an Entity:EntityPos node and assign the alien to it.
-Connect the pos port to the top input port on a Vec3:AddVec3 node (I
am not at Sandbox right now, so the name of this node might be a bit
different).
-In the properties of the bottom port of the Vec3:AddVec3 node you can
now offset the shoot at point. You have x, y, z. You probably want to
offset it by 8 meters or something on the z axis so type in 0,0,8.
-Connect the Vec3:AddVec3 to the position input on the AI:AIShootat
node.
-Test it.
-Tweak the value in the Vec3:AddVec3 node until the tank actually hits
the alien.

Post Reply