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
Script Help Collapse
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Collapse

(10-28-2011, 09:50 AM)Sauron The King Wrote:
(10-27-2011, 11:58 PM)Your Computer Wrote: You missed a function header on the last code block.
How do you add a function header and how should it look like in my scripts?
Yes I know, I am noobie at this. This is the first time working with it.
You can't have a event happening anywhere, it has to be in a function block for it to work.

False:

PHP Code: (Select All)
void Onstart ()
{
AddEntityCollideCallback("Player""Collapse_Sleepingrooms""Collidewhencollapse""true"1);}

{
void SetEntityActive("cave_in_1""true");} 



True:


PHP Code: (Select All)
void Onstart ()
{
AddEntityCollideCallback("Player""Collapse_Sleepingrooms""Collidewhencollapse""true"1);}

void Collidewhencollapse(string &in asParentstring &in asChildint alState)
{    
void SetEntityActive("cave_in_1""true");} 


It might be hard to read due to formatting of the text in the forums though :S


(This post was last modified: 10-28-2011, 10:15 AM by flamez3.)
10-28-2011, 10:13 AM
Find


Messages In This Thread
Collapse - by Sauron The King - 10-27-2011, 11:52 PM
RE: Collapse - by Your Computer - 10-27-2011, 11:58 PM
RE: Collapse - by Sauron The King - 10-28-2011, 09:50 AM
RE: Collapse - by flamez3 - 10-28-2011, 10:13 AM
RE: Collapse - by devin413 - 10-28-2011, 12:12 PM
RE: Collapse - by Sauron The King - 10-28-2011, 12:53 PM
RE: Collapse - by flamez3 - 10-28-2011, 01:15 PM
RE: Collapse - by devin413 - 10-28-2011, 02:44 PM
RE: Collapse - by flamez3 - 10-28-2011, 03:09 PM
RE: Collapse - by devin413 - 10-28-2011, 03:16 PM
RE: Collapse - by flamez3 - 10-28-2011, 03:27 PM
RE: Collapse - by devin413 - 10-28-2011, 06:08 PM
RE: Collapse - by Sauron The King - 10-28-2011, 06:18 PM
RE: Collapse - by devin413 - 10-28-2011, 06:22 PM
RE: Collapse - by Sauron The King - 10-30-2011, 04:00 PM
RE: Collapse - by Sauron The King - 11-02-2011, 01:38 PM



Users browsing this thread: 4 Guest(s)