| kiruclanz   Junior Member
 
 Posts: 10
 Threads: 5
 Joined: Mar 2012
 Reputation: 
0
 | 
			| A couple things I need help with. 
 
				So yeah, I've looked up many tutorials, google searched for hours etc. And cannot find a couple things I need help with.
 Monster triggers
 The PlayerCollide trigger that spawns a monster. I only know how to make the monster spawn by clicking on the trigger. What I want is when you step/walkthrough it, the monster will spawn.
 
 Trigger hurt
 Basic. When you walk through a certain trigger it causes you to lose health.
 
 Can anyone tell me how to do those?
 
 |  | 
	| 03-29-2012, 05:09 AM |  | 
	
		| Obliviator27   Posting Freak
 
 Posts: 792
 Threads: 10
 Joined: Jul 2011
 Reputation: 
66
 | 
			| RE: A couple things I need help with. 
 
				AddEntityCollideCallback is how you would make both work.AddEntityCollideCallback("Player", "AreaName", "FunctionName", true, 1);
 
 
 |  | 
	| 03-29-2012, 11:24 PM |  | 
	
		| Xanthos   Senior Member
 
 Posts: 318
 Threads: 9
 Joined: Mar 2012
 Reputation: 
8
 | 
			| RE: A couple things I need help with. 
 
				void FUNCTIONNAME(string &in asParent, string &in asChild, int alState){
 SetEntityActive("MOBNAME", true);
 
 AddEnemyPatrolNode("MOBNAME", "PATHNODENAME", 1, "");
 AddEnemyPatrolNode("MOBNAME", "SECONDPATHNODENAME", 1, "");
 
 AddEnemyPatrolNode("MOBNAME", "THIRDPATHNODENAME", 1, "");
 
 AddEnemyPatrolNode("MOBNAME", "FOURTHPATHNODENAME", 1, "");
 
 }
 
 And I only know how to make the script hurt you this way
 
 SetPlayerHealth(float afHealth);
 AddPlayerHealth(float afHealth);
 
 Or fiddle with this
 
 
 GivePlayerDamage(float afAmount, string& asType, bool abSpinHead, bool abLethal);
 //Reduces the health of the player.
 
 //afAmount - amount of damage done to health
 //asType - plays a certain effect on the screen when the damage is dealt (BloodSplat, Claws or Slash)
 //abSpinHead - changes the camera view when damage is dealt
 //abLethal - set to true if player can die from given damage
 
 I still cant get it working
 
 
				
(This post was last modified: 03-30-2012, 12:00 AM by Xanthos.)
 |  | 
	| 03-29-2012, 11:59 PM |  |