Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple problems
Author Message
Saren Offline
Member

Posts: 196
Joined: Jan 2012
Reputation: 1
Post: #1
Multiple problems

Alright, been some time guys, I was.... I guess you can call it an accident and get really messed.... lotsa wounds.... anyway, I'm back and I reeeeaaalllly don't have the energy right now to try and keep fixing these mistakes myself.... which I have in a long time....
First is that a monster should spawn after you pick up a key, but he dose'nt spawn.... tried with diffrent ones, same resault. And yes, I watched Your computer's tutorial...... still same.. here's is da script:
//Spawn brute
void ActivateMonster(string &in AsEntity)
{
SetEntityActive("servant_brute", true);
AddEnemyPatrolNode("servant_brute", "PathNodeArea_1", 2, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_2", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_3", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_4", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_5", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_6", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_7", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_8", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_9", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_10", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_11", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_12", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_13", 0, "");
AddEnemyPatrolNode("servant_brute", "PathNodeArea_14", 0, "");
}
void Despawnservant_brute(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_brute", false);
}

void OnLeave()
{
}

Second is that the key does not work in a different map where it should. Script:
void OnStart()
{
AddUseItemCallback("", "Upperfloorkey", "upperfloordoor", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("upperfloordoor", false, true);
PlaySoundAtEntity("", "unlock_door", "upperfloordoor", 0, false);
PlaySoundAtEntity("", "03_puzzle_secret", "Player", 0, false);
RemoveItem("Upperfloorkey");
}

void OnLeave()
{
}

04-15-2012 01:14 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Multiple problems - Saren - 04-15-2012 01:14 AM
RE: Multiple problems - SilentStriker - 04-15-2012, 01:18 AM
RE: Multiple problems - Saren - 04-15-2012, 01:20 AM
RE: Multiple problems - SilentStriker - 04-15-2012, 01:21 AM
RE: Multiple problems - Saren - 04-15-2012, 01:22 AM
RE: Multiple problems - SilentStriker - 04-15-2012, 09:02 AM
RE: Multiple problems - Saren - 04-15-2012, 03:20 PM
RE: Multiple problems - SilentStriker - 04-15-2012, 04:13 PM
RE: Multiple problems - Saren - 04-16-2012, 03:01 AM



User(s) browsing this thread: 1 Guest(s)