Frictional Games Forum (read-only)
[SCRIPT] Make grunt permanent ? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Make grunt permanent ? (/thread-19476.html)



Make grunt permanent ? - Daemian - 12-07-2012

hello, i'm new here.
i have this grunt monster patrolling on a cell and he sometimes disappear when player goes away.
is there a way to stop this? like a function SetEnemyPermanent ?
thank u all


RE: Make grunt permanent ? - ApeCake - 12-07-2012

Nope.

You'll have to use your imagination for this. One way is to have a script area right before each patrolpoint, which adds another AddEnemyPatrolNode. This way he gets looped and won't disappear. It's a bit of a slap to the balls but it's pretty much the only way I know of.

Because he won't disappear if he still has code active.


RE: Make grunt permanent ? - Your Computer - 12-07-2012

http://www.youtube.com/watch?v=xWPU6frXmUY&list=PLD326789BC99530C8&index=19


RE: Make grunt permanent ? - Statyk - 12-07-2012

You could try opening him in the Model Editor, going to Edit > User Defined Settings and raising the Activation Distance. Save him as a new .ent in your custom story folder and load him up in your level editor.


RE: Make grunt permanent ? - The chaser - 12-07-2012

http://www.youtube.com/watch?v=xWPU6frXmUY&list=SPD326789BC99530C8&index=19


RE: Make grunt permanent ? - Daemian - 12-07-2012

thank u guys, great answers. but i already tried all that, look this image

[Image: o9ihcj.jpg]

on that marked node the grunt disappears about %80 of times he patrolls there. as if darkness ate him.
those 2 areas trigger the same function that reminds the grunt his 2 nodes, so he can patrol forever.


[Image: s49thh.jpg]
"say" is just a short function i did that shows a debug message.
when uncommented it shows it's working ok.
but suddenly it stops. when i check inside the cell, the grunt is gone.

if the player can see him, it never disappears. but i can't force the player to stay close just for that. T_T

(12-07-2012, 08:41 PM)Statyk Wrote: You could try opening him in the Model Editor, going to Edit > User Defined Settings and raising the Activation Distance. Save him as a new .ent in your custom story folder and load him up in your level editor.
i'm gonna have to do that. ty


RE: Make grunt permanent ? - FlawlessHappiness - 12-07-2012

Offtopic:

I really like the picture. I'd like to see the final cs Big Grin