Hi all
i look for a script:
Bomb in Zone
so a Bomb explodes in a trigger zone.
is this possible?
Hi all
i look for a script:
Bomb in Zone
so a Bomb explodes in a trigger zone.
is this possible?
My System:
Windows 11
RAM 64,0 GB
Intel i7 3.80GHz
NIVIDIA GeForce RTX 3070
Maybe this below is useable somehow. You could compare the pos of the bomb explosion to your target pos then do an if regarding wether the bomb explosion it is within a distance of x frm your target?
It's what I would try. First off test if you can get the pos for a bomb explosion, if you can then the rest is definitely/probably possible.Code:OnBombExplosion( string title, double mass, Point3d pos, AiDamageInitiator initiator, int eventArgInt) { }
Last edited by Yo-Yo; Jun-01-2023 at 15:42.
I am Yo-Yo not YoYo (that's someone else)
Does return bomb explosion coords. (Have only put them to string for viewing in the message, they are doubles)Code:public override void OnBombExplosion(string title,double mass,Point3d pos,AiDamageInitiator initiator,int eventArgInt) { Console.WriteLine(pos.x.ToString() + " and " + pos.y.ToString()) }
bomb pos.jpg
Last edited by Yo-Yo; Jun-01-2023 at 16:06.
I am Yo-Yo not YoYo (that's someone else)
Then in this thread I asked about measuring distances
https://theairtacticalassaultgroup.c...l=1#post388864
So you should be able to measure between the x and y from your bomb impacts, and the x and y of your target and do something with the result.
Probably you want to hold the first measurement, then overwrite it if any are lower, but not if higher?
Last edited by Yo-Yo; Jun-01-2023 at 16:05.
I am Yo-Yo not YoYo (that's someone else)
Bookmarks