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
One question?
skatekai Offline
Junior Member

Posts: 15
Threads: 6
Joined: Jul 2012
Reputation: 0
#1
One question?

Is there any page or any tutorial that tells all the scripts that can be used in scripts? I'm not saying HPL2 Documentation page but another?

and that script should be used to sound a beep when you walk through an area?
(This post was last modified: 07-24-2012, 10:04 AM by skatekai.)
07-24-2012, 10:02 AM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: One question?

I don't really know what you mean (since there is a lot of different script languages and all are a more or less different) but the hpl2 wiki documentation has all the scripts for amnesia. But if you want to learn more general scripts like the general scripts for C++ (which Angelscript(the language that amnesia uses) are based off) check the google C++ documentation.

07-24-2012, 11:25 AM
Find Reply
skatekai Offline
Junior Member

Posts: 15
Threads: 6
Joined: Jul 2012
Reputation: 0
#3
RE: One question?

(07-24-2012, 11:25 AM)SilentStriker Wrote: I don't really know what you mean (since there is a lot of different script languages and all are a more or less different) but the hpl2 wiki documentation has all the scripts for amnesia. But if you want to learn more general scripts like the general scripts for C++ (which Angelscript(the language that amnesia uses) are based off) check the google C++ documentation.
And what script to use for that when you pass through an area a music sound?
07-24-2012, 02:38 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: One question?

You place a Script area then use AddEntityCollideCallback and if you want to play music it's PlayMusic but if you want to play a sound it's PlaySoundAtEntity

07-24-2012, 02:39 PM
Find Reply
zecuro Offline
Member

Posts: 162
Threads: 33
Joined: Jul 2011
Reputation: 3
#5
RE: One question?

http://wiki.frictionalgames.com/hpl2/amn..._functions
its the only thing i know well still some hpl 2 documentation but what are you using ?????
07-24-2012, 02:40 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#6
RE: One question?

(07-24-2012, 02:40 PM)zecuro Wrote: http://wiki.frictionalgames.com/hpl2/amn..._functions
its the only thing i know well still some hpl 2 documentation but what are you using ?????
huh?

07-24-2012, 02:44 PM
Find Reply
skatekai Offline
Junior Member

Posts: 15
Threads: 6
Joined: Jul 2012
Reputation: 0
#7
RE: One question?

(07-24-2012, 02:40 PM)zecuro Wrote: its the only thing i know well still some hpl 2 documentation but what are you using ?????

I have seen the videos of "Noob to Pro" by Your Computer and the man used a program (like the notepad++ or notepad) in when you started with a script appeared a few options of the same script, not know if I I explained well

(07-24-2012, 02:39 PM)SilentStriker Wrote: You place a Script area then use AddEntityCollideCallback and if you want to play music it's PlayMusic but if you want to play a sound it's PlaySoundAtEntity
okay, but does not work just try it and it feels. I'll put something in the script to look at me:




void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "LightsOut", true, 1);
}
void LightsOut(string &in asParent, string &in asChild, int alState)
{
SetLampLit("candlestick_floor_1", false, true);
AddTimer("", 0, "Out2");
CreateParticleSystemAtEntity("ParticleSystem_1", "ps_dust_whirl.ps", "LightsOut", false);

PlaySoundAtEntity("", "general_wind_whirl.snt", "LightsOut", 0, false);
}
(This post was last modified: 07-24-2012, 02:53 PM by skatekai.)
07-24-2012, 02:47 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#8
RE: One question?

YourComputer is using geany with a hpl thing he made not notepad++. He has a video about that.

is your script area named LightsOut? since the sound and the particles is created at something called LightsOut right now and if you don't have a entity or a script area called LightsOut it wont work.

07-24-2012, 03:09 PM
Find Reply
skatekai Offline
Junior Member

Posts: 15
Threads: 6
Joined: Jul 2012
Reputation: 0
#9
RE: One question?

(07-24-2012, 03:09 PM)SilentStriker Wrote: YourComputer is using geany with a hpl thing he made not notepad++. He has a video about that.

is your script area named LightsOut? since the sound and the particles is created at something called LightsOut right now and if you don't have a entity or a script area called LightsOut it wont work.


Really what I want is that when you pass through an area to leave the lights (lights out) and play the sound of the wind that would be "general_wind_whirl.snt" and with a particle that simulates the wind, but can not get it to work.

So I have to do two areas?
07-24-2012, 03:15 PM
Find Reply
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#10
RE: One question?

One area that the player should collide with and one area that the wind and particles are created

07-24-2012, 03:55 PM
Find Reply




Users browsing this thread: 1 Guest(s)