Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#46
RE: how to make floor break when u go to a certain area

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: (Select All)
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: (Select All)
AddEntityCollideCallback("Yourmonster_1""RemovemyEnemy""JustRemovethePatrollingEnemy"true1); 
SCRIPT:
PHP Code: (Select All)
void JustRemovethePatrollingEnemy(string &in asParentstring &in asChildint alState)
{
SetEntityActive("Yourmonster_1"false);

(This post was last modified: 06-23-2014, 12:58 PM by DnALANGE.)
06-23-2014, 12:52 PM
Find


Messages In This Thread
RE: how to make floor break when u go to a certain area - by DnALANGE - 06-23-2014, 12:52 PM



Users browsing this thread: 1 Guest(s)