Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.hps Error expected '('
Matt201496 Offline
Junior Member

Posts: 11
Threads: 4
Joined: Jun 2012
Reputation: 0
#4
RE: .hps Error expected '('

AM is just an abbreviation for Activate Monster i want the monster to appear then disappear after a set amount of time ( 45 seconds ). Heres the whole script after i did what u said. this time it just says "Main (38,5): ERR : Expected '(' "

////////////////////////////
// Run when the map starts

int AM;

void OnStart()
{
AddUseItemCallback("", "DungeonKey1", "DungeonDoor", "UnlockDungeon", true);
AM = 0;


};



////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

void UnlockDungeon(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}

void ActivateMonster (string &in item)
{
if AM < 2
{

SetEntityActive("DungeonGrunt", true);
AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_1", 0, "idle");
AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_2", 0, "idle");

void AddTimer(string& AMTimer, float 45){

int AM++;}

};



}
(This post was last modified: 06-17-2012, 03:43 AM by Matt201496.)
06-17-2012, 03:36 AM
Find


Messages In This Thread
.hps Error expected '(' - by Matt201496 - 06-17-2012, 02:49 AM
RE: .hps Error expected '(' - by Rapture - 06-17-2012, 03:23 AM
RE: .hps Error expected '(' - by SilentStriker - 06-17-2012, 03:28 AM
RE: .hps Error expected '(' - by Matt201496 - 06-17-2012, 03:36 AM
RE: .hps Error expected '(' - by Obliviator27 - 06-17-2012, 04:30 AM
RE: .hps Error expected '(' - by Matt201496 - 06-17-2012, 04:49 AM
RE: .hps Error expected '(' - by Obliviator27 - 06-17-2012, 04:54 AM
RE: .hps Error expected '(' - by Matt201496 - 06-17-2012, 05:09 AM



Users browsing this thread: 1 Guest(s)