Frictional Games Forum (read-only)

Full Version: It doesn't work...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright, i have 1 area when players enters area monster shall get activated from Inactive to Active.... i got script done and entered level and nothing pops up... seems like script is fine but still SHE doesn't appear ... i am talking about Girl Scary here is script:

Spoiler below!
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player""Teleport1""Appear"true1);
}

void Appear(string &in asParentstring &in asChildint alState)
{
    
SetNPCAwake("Girl1"truetrue);
    
SetNPCFollowPlayer("Girl1"true);



Area is called Teleport1... monster is called Girl1 i checked that...
SetNPC X callbacks are for npc's (obviously), like Agrippa for example. However, monsters aren't npc's. They're entities, which means you have to use SetEntityActive callback.
Awww okay i did got it wrong : ) Thanks for help +rep !