News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Get Projectile Position  (Read 1411 times)

0 Members and 3 Guests are viewing this topic.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Get Projectile Position
« on: April 17, 2022, 08:38:15 PM »
How to get Get Projectile Position

Offline Altamurenza

  • Full Member
  • ***
  • Posts: 118
  • Gender: Male
  • I love cheat, unique, realistic, & expansion mod.
    • View Profile
Re: Get Projectile Position
« Reply #1 on: April 18, 2022, 03:33:39 AM »
There is no easy way to get projectile coordinates if you use CreateProjectile function.
A year ago, i experimented with object functions to achieve that, but failed.

There are three particular functions to measure projectile position based on my logic, the first one is ObjectFindInArea to identify all objects around us, the second function is ObjectIsInAreaXYZ to limit the scope, and the third function is ObjectIsModel to recognize the projectile itself.

I failed because i can't manage ObjectIsModel function to work as there is no any reference that i can use to utilize this function. I was just guessing what its function arguments are, it crashed when i tried ObjectIsModel(OBJ, PROJ_ID). For that reason, i can't identify the projectile i want, so i can't retrieve its position.

That's the end of my story for finding projectile position lol.
I hope this old experiment will be useful for further research or experiment.

Offline Ming

  • Full Member
  • ***
  • Posts: 154
  • Gender: Male
  • 抽刀斷水水更流,舉杯消愁愁更愁
    • View Profile
Re: Get Projectile Position
« Reply #2 on: April 19, 2022, 10:51:15 PM »
Thanks, I'm going to try these three functions