Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
IN NEED OF SCRIPTING HELP
Author Message
Nuite Offline
Junior Member

Posts: 2
Joined: Sep 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)