Hello Teutonic!
I finally got my ftp access back, so here's a screen for you
So to put it in words, the Npc Sight angle goes from
0 to
360 and can be adjusted from with in the
General panel in the
Advanced Section.
360 makes your enemies some kind of freaks who have eyes in their butts.. If a player is hiding behind a wall though, they would still not be able to see him, even with their super butt sight.
To make Npcs be able to see through walls is a feature i didn't thought anyone would ask for, so it's not in a Panel(i had overloaded them with settings already...). You
can still do this with IntenseX - Basic with a little bit of coding.
Follow my instructions in
this post to have your own script file. Now add the following function to your script:
Code:
function is_SubAction_CheckLOSFromStanceToStance(a,b,c,d)
{
return (IS_TRUE);
}
That's it. Your Npcs can now look through walls.
Here's some insight about what you've just done(if you're actually going to do this). All Npcs use another instance of this function which is called exacly the same, in order to do their c_traces and see if they can spot an enemy. If the function returns IS_FALSE, they can't, otherwise , they can. Now if we
override this function with our version, which always returns IS_TRUE.. problem solved. C-Script always uses the function defined last if two functions share the same name and number of parameters.
As you've already guessed, using IntenseScript you'll be able
set the player on your Npc's
memory, so you can have an Npc chasing the player(or anyone else for that matter), at any time you want, regardless if there are walls in-between or not..
One last thing that you should mind.. If you want an Npc to automatically go after the player, on game-start, regardless if the Npc is miles away from the player, or right beside him, you should play a bit with the
LOD values, also located in the
General Panel in
Advanced Section.
LOD in IntenseX prevents an Npc from getting
Activated, thus spending precious CPU resources, unless he is close enough to the player, or there's line of sight between the two. If you don't want LOD in your game, then simple set the
Short Range Npc Activation and
Long Range Npc Activation, to an equal high value. If your level is 500 meters long for example, then set the number
500 in both those values, to get the Npcs going after the player, the minute he sets his foot on your freak-land
Let me know how it goes..
Cheers,
Aris