The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's wrong..?
DannieWest Offline
Member

Posts: 156
Threads: 13
Joined: Apr 2011
Reputation: 0
#1
What's wrong..?

This is my script, what's wrong with it?

void OnStart()
{
AddUseItemCallback("", "Honey", "mansion_1", "UsedHoneyOnDoor", true);
}

void UsedHoneyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
RemoveItem("Honey");
}

void AddEntityCollideCallback("Player", "ScriptArea_1", "AddPropImpulse", true, 0);
{
AddPropImpulse(Hatchet_1, 0, 10, 0, "world");
}

I want the hatchet to fly open when the player enters ScriptArea_1, but I get an error saying "Unexpected token "{". The first part works..
05-04-2011, 01:23 PM
Find


Messages In This Thread
What's wrong..? - by DannieWest - 05-04-2011, 01:23 PM
RE: What's wrong..? - by Russ Money - 05-04-2011, 01:33 PM
RE: What's wrong..? - by DannieWest - 05-04-2011, 01:41 PM
RE: What's wrong..? - by Russ Money - 05-04-2011, 01:46 PM
RE: What's wrong..? - by DannieWest - 05-04-2011, 01:49 PM
RE: What's wrong..? - by Acies - 05-04-2011, 02:06 PM
RE: What's wrong..? - by DannieWest - 05-04-2011, 02:31 PM
RE: What's wrong..? - by Roenlond - 05-04-2011, 02:59 PM
RE: What's wrong..? - by DannieWest - 05-04-2011, 03:13 PM
RE: What's wrong..? - by MrBigzy - 05-04-2011, 03:36 PM
RE: What's wrong..? - by DannieWest - 05-04-2011, 09:01 PM
RE: What's wrong..? - by MrBigzy - 05-04-2011, 09:16 PM
RE: What's wrong..? - by DannieWest - 05-04-2011, 09:20 PM
RE: What's wrong..? - by Acies - 05-04-2011, 09:40 PM
RE: What's wrong..? - by DannieWest - 05-05-2011, 08:40 AM



Users browsing this thread: 10 Guest(s)