Frictional Games Forum (read-only)
Scripting questions - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Scripting questions (/thread-18609.html)



Scripting questions - LulleBulle - 10-03-2012

1. How do I force walk someone?
2. How do I make it rain?
3. How do I create dripping water such as from broken pipes, etc?

Answers are appreciated Smile


RE: Scripting questions - Robby - 10-03-2012

1. You'll need to use this function for that.
Make sure you use a timer that calls loops itself every 0.05 seconds, at least.

MovePlayerForward(float afAmount)

2 and 3.

You can use particle effects, but question 2 is more complicated than I thought.

You can find more information here:
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


It is being edited out (I guess, at the time of this post), so extra details about the script functions is not there.


RE: Scripting questions - The chaser - 10-03-2012

2: In "The attic: chapter three" there was rain. Maybe you could check it.

3: There is an entity (or static_object?) from the sewer that makes that. You could adjust it so it looks ok. But, yes, there is a particle that makes that effect. Try looking at original amnesia maps and find out.

For 1, is the first time I see these. I think Followed by Death had it, but I don't remain.


RE: Scripting questions - FlawlessHappiness - 10-03-2012

I'm pretty sure the particle effect for water dripping is "water_drip.ps", but i'm not 100% sure


RE: Scripting questions - GoranGaming - 10-03-2012

There are several particle systems for water drips; ps_water_drop, ps_water_drop_blue, ps_water_drop_single and a few others


RE: Scripting questions - LulleBulle - 10-03-2012

(10-03-2012, 04:22 PM)Nemet Robert (Robby) Wrote: 1. You'll need to use this function for that.
Make sure you use a timer that calls loops itself every 0.05 seconds, at least.

MovePlayerForward(float afAmount)

2 and 3.

You can use particle effects, but question 2 is more complicated than I thought.

You can find more information here:
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions


It is being edited out (I guess, at the time of this post), so extra details about the script functions is not there.
Yea I saw on the script page that you had to put it on loop so I kinda asked the wrong question, what I really need to know is how to put it in loop, sorry about that.

(10-03-2012, 05:05 PM)The chaser Wrote: 2: In "The attic: chapter three" there was rain. Maybe you could check it.

3: There is an entity (or static_object?) from the sewer that makes that. You could adjust it so it looks ok. But, yes, there is a particle that makes that effect. Try looking at original amnesia maps and find out.

For 1, is the first time I see these. I think Followed by Death had it, but I don't remain.
Was looking at Tanshaydar's White Night, couldn't find how he made it.

(10-03-2012, 08:09 PM)GoranGaming Wrote: There are several particle systems for water drips; ps_water_drop, ps_water_drop_blue, ps_water_drop_single and a few others
Thanks, will be sure to check those out!


RE: Scripting questions - Vic7im - 10-04-2012

The rain particle (ps_water_rain iirc) is a 30x30 box, place it wisely or it will rain indoors.


RE: Scripting questions - LulleBulle - 10-04-2012

(10-04-2012, 08:22 AM)Vic7im Wrote: The rain particle (ps_water_rain iirc) is a 30x30 box, place it wisely or it will rain indoors.
Isn't it shrinkable?


RE: Scripting questions - Vic7im - 10-05-2012

(10-04-2012, 12:16 PM)LulleBulle Wrote:
(10-04-2012, 08:22 AM)Vic7im Wrote: The rain particle (ps_water_rain iirc) is a 30x30 box, place it wisely or it will rain indoors.
Isn't it shrinkable?
Nope