11-10-2012, 01:36 AM
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:
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.
PHP Code:
void OnStart()
{
AddUseItemCallback("", "copper_tube_1", "PlaceArea", "PlaceCopper1", true);
}
void PlaceCopper1(string &in asItem, string &in asEntity)
{
RemoveItem("copper_tube_1");
SetEntityActive("copper_tube_4", true);
PlaySoundAtEntity("", "pick_pipe", "copper_tube_4", 0, false);
}
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.