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
I need some help with two problems.
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#8
RE: I need some help with two problems.

void OnStart()
{
     AddUseItemCallback("", "key_4", "locked_door1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
     SetSwingDoorLocked("locked_door1", false, true);
     PlaySoundAtEntity("", "unlock_door.snt", "locked_door1", 0, false);
     RemoveItem("key_1");
     SetEntityActive("servant_brute_1", true);
     ShowEnemyPlayerPosition("servant_brute_1");
}

If you see that error, then the command function doesn't exist when the name or parameters have something abnormal.

(This post was last modified: 10-02-2011, 05:25 PM by Kyle.)
10-02-2011, 05:24 PM
Find Reply


Messages In This Thread
RE: I need some help with two problems. - by Kyle - 10-01-2011, 11:15 PM
RE: I need some help with two problems. - by Kyle - 10-01-2011, 11:57 PM
RE: I need some help with two problems. - by Kyle - 10-02-2011, 05:24 PM



Users browsing this thread: 1 Guest(s)