Quote:
Originally Posted by propbeanie
they must have crippled the AI for the scripting, or maybe WITH the script... I'll have to look at that for my curiosity... lol
|
Script is simple. There are two boolean functions (syntax looks like Javascript, kind of):
Plane:HasBombs()
Plane:CanFireBombs()
These are conditions for action Plane:FireBombs();
So if both are true, plane should execute action.
Except - I have checked approaches with AI Debugger (very useful SH5 tool allowing you to check values of all functions of all scripts in any given moment of time), that there is a moment during approach when both conditions are true and the plane still doesn't execute the action.
There must be something within Plane:FireBombs() function that prevents it from doing what it is supposed to be doing, but what? I don't have access to that code itselt, just the script that uses it. So, my solution was simply to maximize time plane spends over target (by switching from normal bomb approach to "circle target and strafe it repeatedly" behaviour), increasing probability that Plane:FireBombs() will be triggered at some point.