Frictional Games Forum (read-only)
how to make floor break when u go to a certain area - 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: how to make floor break when u go to a certain area (/thread-25504.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014

how to make the grunt still spawn after he kills you?
how to get tat blue screen when u solved a puzzle?

(06-23-2014, 04:35 AM)Romulator Wrote: Is the player actually looking at the bookshelf when it falls? If not, you can make it look like it falls just by having another bookshelf in the desired position and calling the SetEntityActive() code - disabling the original and applying the fallen one.

tats wat i meant ty


RE: how to make floor break when u go to a certain area - Romulator - 06-23-2014

(06-23-2014, 07:53 AM)victorkim890(KimmyChimmy) Wrote: how to make the grunt still spawn after he kills you?
This can be done with checkpoints. I don't know how to use them fully, but this should help: https://wiki.frictionalgames.com/doku.php?id=hpl2/tutorials/scripting/checkpoints_using_scriptarea_s


(06-23-2014, 07:53 AM)victorkim890(KimmyChimmy) Wrote: how to get tat blue screen when u solved a puzzle?

That would be a GiveSanity code.
Use either:
PHP Code:
GiveSanityBoost(); 
OR
PHP Code:
GiveSanityBoostSmall(); 



RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014

how to make the grunt go follow a path and disapear. i tried to do it but it didnt work


RE: how to make floor break when u go to a certain area - Romulator - 06-23-2014

What part are you having trouble with?


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014

the grunt doesnt follow the path. it just stays right there in one spot unless i go near it and itll start chasing me

im trying to do tat thing in tat custom story la caza the grunt just ignores everything and just follows the path


RE: how to make floor break when u go to a certain area - DnALANGE - 06-23-2014

Make PATROL NODES in your level editor.
Then go to your script (hps) and add these (if you want you can add the AddEnemyPatrolNoded OnStart if you want the enemy to move as the map starts):
PHP Code:
AddEnemyPatrolNode("Yourmonster_1""PathNodeArea_1"0"");
AddEnemyPatrolNode("Yourmonster_1""PathNodeArea_2"0"");
AddEnemyPatrolNode("Yourmonster_1""PathNodeArea_3"0""); 
--
Do you have this or understand this?
---
At the end of the last patrol node easely add a SCRIPTAREA and name it : RemovemyEnemy :
PHP Code:
AddEntityCollideCallback("Yourmonster_1""RemovemyEnemy""JustRemovethePatrollingEnemy"true1); 
SCRIPT:
PHP Code:
void JustRemovethePatrollingEnemy(string &in asParentstring &in asChildint alState)
{
SetEntityActive("Yourmonster_1"false);




RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014

Ty figured it out


RE: how to make floor break when u go to a certain area - DnALANGE - 06-23-2014

Your welcome.
for any other questions you might change the treadname..
just so we know it is another issue.


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014

ill see


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-23-2014

how do u do tat intro in abnormal pitchblack custom story?