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
Exploding doors
giacomo9 Offline
Junior Member

Posts: 37
Threads: 11
Joined: Nov 2012
Reputation: 0
#1
Exploding doors

The player has an explosive potion. When you use it on the door, they explode - how to do it? I have a script for this, but it shows the information "Cannot use this item in this way"...
Here's the script:
("Completed" - that is exploding potion; "cheryl" - this is normal door; "cherylBroken" - this is broken door)

AddUseItemCallback("", "Completed", "cheryl", "Boom", true);

void Boom(string &in asItem, string &in asEntity)
{
SetEntityActive("cheryl", false);
SetEntityActive("cherylBroken", true);
PlaySoundAtEntity("", "06_break_wood.snt", "cheryl", 0, false);
RemoveItem("Complete");
}
12-03-2012, 09:18 PM
Find


Messages In This Thread
Exploding doors - by giacomo9 - 12-03-2012, 09:18 PM
RE: Exploding doors - by FlawlessHappiness - 12-03-2012, 09:37 PM
RE: Exploding doors - by giacomo9 - 12-03-2012, 09:44 PM
RE: Exploding doors - by FlawlessHappiness - 12-03-2012, 10:29 PM
RE: Exploding doors - by giacomo9 - 12-03-2012, 10:44 PM
RE: Exploding doors - by The chaser - 12-03-2012, 11:00 PM
RE: Exploding doors - by FlawlessHappiness - 12-04-2012, 06:50 AM



Users browsing this thread: 1 Guest(s)