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


IN NEED OF SCRIPTING HELP
Nuite Offline
Junior Member

Posts: 2
Threads: 1
Joined: Sep 2011
Reputation: 0
#1
IN NEED OF SCRIPTING HELP

Hi, i wanted something cool with prophealth so i did this:


void OnStart()
{
GiveItemFromFile("lantern", "lantern.ent");
AddEntityCollideCallback("door1", "chair1", "break1", true, 0);
}

void break1()
{
AddPropHealth("door1", -100);
}


That is my scripting so far, and in this case i wanted a chair (chair1) to break a door (door1) when it collided (i.e. throwing the chair at the door)
It doesn't seem to work...
what am i doing wrong? Thanks!Smile
09-17-2011, 12:59 PM
Find


Messages In This Thread
IN NEED OF SCRIPTING HELP - by Nuite - 09-17-2011, 12:59 PM
RE: IN NEED OF SCRIPTING HELP - by Elven - 09-17-2011, 09:05 PM
RE: IN NEED OF SCRIPTING HELP - by JenniferOrange - 09-17-2011, 10:14 PM
RE: IN NEED OF SCRIPTING HELP - by Nuite - 09-17-2011, 11:07 PM
RE: IN NEED OF SCRIPTING HELP - by neocrawler - 09-29-2011, 10:36 PM



Users browsing this thread: 1 Guest(s)