Here is my code:GScript error, "C:/Users/Owner/Downloads/Doomed/:zscript" line 186:
GUnknown identifier 'DisplayName'
Execution could not continue.
1 errors while parsing scripts
Code: Select all
class MyPlayer : DoomPlayer{
Default
{ Health 125 ;
Player.MaxHealth 125 ;
Player.DisplayName "The Badass" ;
Player.StartItem "Chainsaw";
Player.StartItem "Fist";
Player.StartItem "Pistol";
Player.StartItem "Clip", 25;
Player.StartItem "Vilestaff" ;
Player.StartItem "DoomOrb", 10;
}
int GetActorName(DoomPlayer dplay)
{
// If the 'who' pointer is null, returns -1 and stops execution:
if (dplay.DisplayName == "Marine")
{
return -1;
}
// Otherwise returns the health value of pointer 'who':
return dplay.health;
}
}