View Single Post
  #6  
Old 10-29-2013, 06:14 PM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

Second part a bad idea? May I ask why? :p


(just this part.. I want to know if they have special abilities before I start messing with them in perl)

Code:
void NPC::mod_prespawn(Spawn2 *sp) 
{
	for( int i = 1; i < 36; i++ )
	{
		if(GetSpecialAbility(i))
		{
			const char* HasAbility = "1";
			const char* Stuff = "HasSpecial";
			SetEntityVariable(Stuff, HasAbility);
			break;
		}
	}
}
Reply With Quote