Frictional Games Forum (read-only)

Full Version: Gent will stop mid path
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I had recently wanted a gent npc to follow a path, and it stops mid path. Then at a certain point it just disappears. I really need help with this or else i cant have random people in the streets just walking past. I also get the sanity effect from looking at them when i disabled sanity. How can i disable this with the certain enemy?
Use either of these. The first should disable everything, and the latter will disable it for a single enemy (the gent).

PHP Code:
SetSanityDrainDisabled(bool abX);
SetEnemySanityDecreaseActive(string &in asNamebool abX); 

For the former problem (disappearing suddenly). If the player is too far away, or an enemy has hit its last pathnode and the player is not looking, they automatically disappear. You can change these settings in the Model Editor in the User Defined Variables for the gent model. I'm pretty certain they're right down the bottom; increase the max distance and there's a checkbox option for disappearing at the pathnode end if I recall.

Make sure also to disable the triggers for the gent. Otherwise, if it sees the player, it will go into Hunt mode, but will just be idle.
(12-08-2016, 03:17 AM)Romulator Wrote: [ -> ]Use either of these. The first should disable everything, and the latter will disable it for a single enemy (the gent).

PHP Code:
SetSanityDrainDisabled(bool abX);
SetEnemySanityDecreaseActive(string &in asNamebool abX); 

For the former problem (disappearing suddenly). If the player is too far away, or an enemy has hit its last pathnode and the player is not looking, they automatically disappear. You can change these settings in the Model Editor in the User Defined Variables for the gent model. I'm pretty certain they're right down the bottom; increase the max distance and there's a checkbox option for disappearing at the pathnode end if I recall.

Make sure also to disable the triggers for the gent. Otherwise, if it sees the player, it will go into Hunt mode, but will just be idle.

Thank you, this works! Smile
Glad to help Smile Best of luck with the mod!