
|
With regard to unit clarification, 1 JKU is the equivalent of 1 meter, a time value of 3000.0 msec is the equivalent of 3 seconds and boolean values within are assigned by either a 0 (false) or 1 (true) value. Interestingly, both integer and floating-point numbers seem to be legal values for boolean arguments (but must be of the form 0.0 or 1.0).
Each instinct has a set number of arguments which must be set, in order for the AI character to use that instinct. The following details show examples, as well as listing each argument effect and type.
Roam 10000, 2.0
Argument 1: Time interval to choose a new direction (msec)
Argument 2: Radius around position* to roam (+/- JKUs: *positive value for home position / negative value for AI's current position)
This instinct allows the AI to meander around its environment simulating a patrolling nature if agressive, or a general roam if passive. Essentially, this instinct just adds an element of realism and atmosphere to a level. This instinct is initiated upon a fractional delay after a level loads and assures that the character does not stand still. With regard to parameter information, argument 1's value sets the time interval between checks for a new (random) direction, whilst argument 2's value sets the "style" of the roaming behaviour by either allowing the AI to roam but limit its roaming range to the radius around its "home pointer" (value supplied is in JKUs) or, alternatively, allow the AI to completely randomise its own roaming session by setting the value to a negative floating-point number. The effect of setting argument 2's value as a negative number (allowing the AI to potentially roam further from it's "home pointer") appears to be negated if the AI has the ReturnHome instinct.
This section details how the instinct is initiated. In some cases, a charactor's AI are dependent upon certain actions/events occurring before the instinct is triggered.
Impossible to deduce whether or not this instinct is triggered by LookForTarget as this instinct is enabled as soon as the JK level has loaded.
Assuming the Jump instinct is present, the AI should be able to jump over objects (based on the testing evidence of Follow) whilst it roams, but this has not been tested.