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
Cant use my item on an area [SOLVED]
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
Cant use my item on an area [SOLVED]

I have scripted for alittle while and I've done this script several times

Normally when you want to use an item on a area, door or what ever you wanna use it on it's icon brightens up

But someway, when I want to use my glass_container on an area nothing happens, the container icon dosen't even light up when im seleting the container and pointing it at the area.

Any one of you know why this happens.

Just to set things straight I'll leav my script so you can see that the scripts is up


void OnEnter()
{
PlayMusic("", true, 1, 1, 1, false);
PlaySoundAtEntity("OilSplash", "16_oil_drip.ogg", "OilSplashArea", 0, false);
AddUseItemCallback("", "glass_container_1", "GetOilArea", "GettingOil", true);
}
///////////////////
//BEGIN GettingOil
void GettingOil(string &in asItem, string &in asEntity)
{
GiveItem("glass_container_oil", "Puzzle", "GlassContainerOil", "glass_container_oil.tga", 1);
RemoveItem("glass_container_1");
}
//END GettingOil
///////////////////


And yes the names in the script and in the editor are the same

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 05-31-2014, 12:31 PM by Lizard.)
05-31-2014, 12:15 PM
Find


Messages In This Thread
Cant use my item on an area [SOLVED] - by Lizard - 05-31-2014, 12:15 PM
RE: Cant use my item on an area - by DnALANGE - 05-31-2014, 12:23 PM
RE: Cant use my item on an area - by DnALANGE - 05-31-2014, 12:33 PM



Users browsing this thread: 1 Guest(s)