Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help How to achieve this scenario?
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: How to achieve this scenario?

You haven't done the script correctly.
You need to understand how the script works.

This is how it should look:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_2", "BreakPotPlant", true, 1);
}

void BreakPotPlant(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("pot_plant_small02_1", 0);
}

IMPORTANT
You cannot have 2 void OnStart's, so you'll have to take the line in this void OnStart, and put it inside your void OnStart next to all the other lines.

Trying is the first step to success.
(This post was last modified: 01-31-2013, 06:05 PM by FlawlessHappiness.)
01-31-2013, 06:03 PM
Find


Messages In This Thread
How to achieve this scenario? - by serbusfish - 01-30-2013, 01:54 AM
RE: How to achieve this scenario? - by NaxEla - 01-30-2013, 02:28 AM
RE: How to achieve this scenario? - by serbusfish - 01-30-2013, 04:07 AM
RE: How to achieve this scenario? - by The chaser - 01-30-2013, 09:35 AM
RE: How to achieve this scenario? - by serbusfish - 01-31-2013, 01:58 AM
RE: How to achieve this scenario? - by serbusfish - 01-31-2013, 05:30 PM
RE: How to achieve this scenario? - by FlawlessHappiness - 01-31-2013, 06:03 PM
RE: How to achieve this scenario? - by serbusfish - 02-01-2013, 04:09 AM
RE: How to achieve this scenario? - by The chaser - 02-01-2013, 10:28 AM
RE: How to achieve this scenario? - by serbusfish - 02-01-2013, 05:04 PM
RE: How to achieve this scenario? - by Kreekakon - 02-01-2013, 05:17 PM
RE: How to achieve this scenario? - by serbusfish - 02-03-2013, 03:58 AM
RE: How to achieve this scenario? - by The chaser - 02-03-2013, 11:54 AM
RE: How to achieve this scenario? - by serbusfish - 02-05-2013, 03:29 AM
RE: How to achieve this scenario? - by serbusfish - 02-08-2013, 02:33 AM
RE: How to achieve this scenario? - by serbusfish - 02-08-2013, 01:48 PM



Users browsing this thread: 7 Guest(s)