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
Script problem!
Dark88 Offline
Junior Member

Posts: 48
Threads: 6
Joined: Dec 2010
Reputation: 0
#4
RE: Script problem!

(12-24-2010, 05:58 PM)HumiliatioN Wrote: Uhmm... sorry to disturb but i dont know what is wrong now?

void OnEnter()
{
AddUseItemCallback("", "Office Key", "Office Door", "KeyOnDoor", true);
}

Actual Functions ////

-> line 46,1 void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Office Door", false, true);
RemoveItem("Office Key");
PlaySoundAtEntity("", "unlock_door.snt", "Office Door", 0.0f, true);
}

void scareactivate(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Waterlurker" , true);
AddEnemyPatrolNode("Waterlurker", "PathNodeArea_1", 0.0f, "true");
}

I get error main (46,1) ERROR: Expected '(' Where is that?

Im confused..

One thing, you have true in quotations in your AddEnemyPatrolNode. That might be causing you're error I always get weird explanations for errors that are entirely for a different reason.

EDIT: And of course what the previous two posters said.
(This post was last modified: 12-24-2010, 06:09 PM by Dark88.)
12-24-2010, 06:06 PM
Find


Messages In This Thread
Script problem! - by HumiliatioN - 12-24-2010, 05:58 PM
RE: Script problem! - by adamhun - 12-24-2010, 06:05 PM
RE: Script problem! - by Frontcannon - 12-24-2010, 06:05 PM
RE: Script problem! - by HumiliatioN - 12-24-2010, 06:10 PM
RE: Script problem! - by Dark88 - 12-24-2010, 06:06 PM
RE: Script problem! - by Frontcannon - 12-24-2010, 06:29 PM
RE: Script problem! - by Dark88 - 12-24-2010, 07:18 PM
RE: Script problem! - by Mardukpainkiller - 07-17-2011, 05:09 PM



Users browsing this thread: 1 Guest(s)