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
Interesting question, would this work?
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#1
Interesting question, would this work?

I have an item "glass_container" that I would like to have usable on more than one entity in a level. heres the script:
void OnStart ()
{
AddUseItemCallback("", "glass_jar", "thing1", "Funk01", false);
}

void Funk01(string &in asItem, string &in asEntity)
{
RemoveItem("glass_jar");
//other stuff
}

How do I get more than one entity named "thing1" for this to work? Or, do I need to make a bunch of callbacks like:
{
AddUseItemCallback("", "glass_jar", "thing1", "Funk01", false);
AddUseItemCallback("", "glass_jar", "thing2", "Funk03", false);
AddUseItemCallback("", "glass_jar", "thing3", "Funk03", false);
}
for each entity I want usable? halp!
07-16-2011, 04:25 AM
Find


Messages In This Thread
Interesting question, would this work? - by SLAMnesia - 07-16-2011, 04:25 AM



Users browsing this thread: 1 Guest(s)