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
What's wrong with script?
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#1
What's wrong with script?

Script:
void Onstart()
{AddEntityCollideCallback("Player", "ScareOne", "ScareOne", true, 1);}
void ScareOne(string &in asParent, string &in asChild, int alState){SetLampLit("ScareOneLight", true, true);SetLampLit("ScareOneLightTwo", true, true);SetEntityActive("ScareOneMonster", true);ShowEnemyPlayerPosition("ScareOneMonster");PlaySoundAtEntity("", "react_scare3.ogg", "Player", 10.0f, true);PlayMusic("LevelOneMusic", true, 10.0f, 2.0f, 2.0f, true);}
void OnEnter(){}void OnLeave(){}
Custom Story Settings:
Lang file:
                        That's it then. You've commited murder and you've been sent to prison for life. You've become deranged, and insane for the time you've been in there.[br]You want to find a way out anyway you can. Even if it includes bloodshed.[br]You need to get out.


What's wrong with this, when I walk into the area stated, it doesn't activate

:Work In Progress:
Insanity
(This post was last modified: 10-14-2011, 09:16 PM by JoeBradleyUK.)
10-14-2011, 08:48 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#2
RE: What's wrong with this?

And what do you want to archive? Explain that too please Smile.

And your design is horrible XD

The Interrogation
Chapter 1

My tutorials
10-14-2011, 08:57 PM
Find
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#3
RE: What's wrong with this?

(10-14-2011, 08:57 PM)Elven Wrote: And what do you want to archive? Explain that too please Smile.

And your design is horrible XD
I don't understand, what do you mean?

:Work In Progress:
Insanity
10-14-2011, 09:01 PM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#4
RE: What's wrong with this?

(10-14-2011, 09:01 PM)JoeBradleyUK Wrote:
(10-14-2011, 08:57 PM)Elven Wrote: And what do you want to archive? Explain that too please Smile.

And your design is horrible XD
I don't understand, what do you mean?
he means what specifically are you trying to do that isn't working?

Insanity. Static.
10-14-2011, 09:03 PM
Find
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#5
RE: What's wrong with this?

(10-14-2011, 09:03 PM)Juby Wrote:
(10-14-2011, 09:01 PM)JoeBradleyUK Wrote:
(10-14-2011, 08:57 PM)Elven Wrote: And what do you want to archive? Explain that too please Smile.

And your design is horrible XD
I don't understand, what do you mean?
he means what specifically are you trying to do that isn't working?
I walk into area "ScareOne" and a monster comes at me charging and two lamps turn on before me, that's it.


:Work In Progress:
Insanity
10-14-2011, 09:05 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: What's wrong with script?

Onstart should be OnStart.

Tutorials: From Noob to Pro
10-14-2011, 09:12 PM
Website Find
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#7
RE: What's wrong with script?

(10-14-2011, 09:12 PM)Your Computer Wrote: Onstart should be OnStart.
Thankyou, I can make really simple mistakes sometimes......A lot.

:Work In Progress:
Insanity
10-14-2011, 09:16 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#8
RE: What's wrong with script?

It happens to us all Smile

The Interrogation
Chapter 1

My tutorials
10-14-2011, 10:13 PM
Find




Users browsing this thread: 1 Guest(s)