Mudbill

Monster Path Script (Amnesia)

Feb 20th, 2013
1,505
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void OnStart()
  2. {
  3. AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
  4. }
  5.  
  6. void EventCollide(string &in asParent, string &in asChild, int alState)
  7. {
  8. SetEntityActive("Grunt", true);
  9.  
  10. AddEnemyPatrolNode("Grunt", "Node_3", 0.001f, "");
  11. AddEnemyPatrolNode("Grunt", "Node_13", 0.001f, "");
  12. AddEnemyPatrolNode("Grunt", "Node_16", 0.001f, "");
  13. AddEnemyPatrolNode("Grunt", "Node_27", 0.001f, "");
  14. AddEnemyPatrolNode("Grunt", "Node_30", 0.001f, "");
  15. }
RAW Paste Data