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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot use item on area
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
Cannot use item on area

I've placed a ScriptArea around a statue, and I want the player to use an item on the area to place it in the statue's hand. Here's the script:

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("""copper_tube_1""PlaceArea""PlaceCopper1"true);
}

void PlaceCopper1(string &in asItemstring &in asEntity)
{
    
RemoveItem("copper_tube_1");
    
SetEntityActive("copper_tube_4"true);
    
PlaySoundAtEntity("""pick_pipe""copper_tube_4"0false);


The ScriptArea's Item Interaction box is checked, I've double/triple/quadruple-checked. The item interaction works when I designate any other entity, but it won't work with the ScriptArea.

(This post was last modified: 11-10-2012, 06:58 PM by Damascus.)
11-10-2012, 01:36 AM
Find


Messages In This Thread
Cannot use item on area - by Damascus - 11-10-2012, 01:36 AM
RE: Cannot use item on area - by Adny - 11-10-2012, 01:37 AM
RE: Cannot use item on area - by Damascus - 11-10-2012, 02:07 AM
RE: Cannot use item on area - by Statyk - 11-10-2012, 03:12 AM
RE: Cannot use item on area - by Damascus - 11-10-2012, 04:52 AM
RE: Cannot use item on area - by Damascus - 11-10-2012, 05:06 PM
RE: Cannot use item on area - by The chaser - 11-10-2012, 05:24 PM
RE: Cannot use item on area - by Damascus - 11-10-2012, 05:29 PM
RE: Cannot use item on area - by The chaser - 11-10-2012, 06:16 PM
RE: Cannot use item on area - by Your Computer - 11-10-2012, 05:31 PM
RE: Cannot use item on area - by Damascus - 11-10-2012, 05:44 PM
RE: Cannot use item on area - by Your Computer - 11-10-2012, 05:49 PM
RE: Cannot use item on area - by Damascus - 11-10-2012, 06:57 PM
RE: Cannot use item on area - by The chaser - 11-10-2012, 07:03 PM



Users browsing this thread: 1 Guest(s)