HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question of Pitch

05-11-2006, 07:34 AM#1
James59281
Is it possible to use triggers to change the pitch of a model?

I'm asking this because i'm creating a custom archery system that requires me to be able to turn the arrows up and down as they move through the air in the usual parabolic path.

If so, how?
05-11-2006, 08:02 AM#2
PipeDream
Try this function:
Collapse JASS:
native          SetUnitLookAt       takes unit whichUnit, string whichBone, unit lookAtTarget, real offsetX, real offsetY, real offsetZ returns nothing
native          ResetUnitLookAt     takes unit whichUnit returns nothin
You should be able to use the unit itself as the target and then offset appropriately. For bone, try "chest".

If you can't get this to work, you could try having the missile try to "attack" another dummy.