3D Projectile Movement

Status
Not open for further replies.
Level 11
Joined
Aug 16, 2007
Messages
846
I am working on a third person shooter map, and I am using mouselook, and as such you will be able to aim the gun, in 3 dimensions (Up and Down as well) instead of pointing the unit in the right direction, as is usually the case. But I have yet to work out just how to do this.

ViewNoGlowCropped.JPG

As depicted in screenshot above, I need the projectile to travel directly from the unit to the location that the target is pointing at.


Anyways to the point, I have seen some triggers that should allow me to direct the projectile, but my problem is detecting if it impacts with anything along the way.

I have looked through a bunch of triggers and such, and so far it looks like something to do with Actors will be the most promising. But unfortunately I have yet to find anything.


Does anyone know of any triggers or data fields (I have looked briefly at the Events+ field) that I can use to do that? Or better yet a better way to do what I am trying to accomplish.


Remember, this has to include collisions with doodads and not just units.
 
I've gotten 3D units to work (lamely) and have since stopped working on the system. I'd like to see doodads done though. I have not seen any "Doodad position" functions however. It may be possible to do so by checking pathing (which would only be 2D). There's a War3 Map that had full physics, I believe he used custom defined doodads as data types in the scripting engine. You may want to take a look: https://www.hiveworkshop.com/forums...146341/?prev=search=Combat%20Zone&d=list&r=20

And in case it helps, my map: http://www.sc2mapster.com/maps/g-3pshooter/
 
Status
Not open for further replies.
Back
Top