Frictional Games Forum (read-only)
[SCRIPT] Quick answers to quick 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: [SCRIPT] Quick answers to quick questions... (/thread-11279.html)

Pages: 1 2


Quick answers to quick questions... - sasukeroxxx - 11-09-2011

Hi, im brazilian. sorry for bad english '-'

so,

How to do when a song ends, keep repeating?
and, as it does to such a monster. when you die it does not disappear in? cause if you go back to the script that activates the second time turn it back

Thank you =D



RE: Quick answers to quick questions... - Prelauncher - 11-09-2011

It has been quite a while since I last scripted but I think what you´re looking for if you use PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
for your script, you should put abLoop to true.


RE: Quick answers to quick questions... - sasukeroxxx - 11-11-2011

oh, works, ty.

but now, for example: I travel through by an active ScriptArea where are the water monster, and to her from dying when I came back he would not be more, and do not want it, I want every time I die for him, he remains there, so how i do this? :3



RE: Quick answers to quick questions... - Statyk - 11-11-2011

first, set the waterlurker "inactive". then in the scriptarea you placed, have it spawn. go into the script and where it says "AddEntityCollideCallback("Player", "SCRIPTAREA", "monster_function", false, 1)"... make sure it says FALSE. This will allow the scriptarea to remain active and after death, the monster will spawn again once the player goes through it.

Hope this fixed it! =]



RE: Quick answers to quick questions... - sasukeroxxx - 11-11-2011

holy sh*t, works, thank you so much =)


RE: Quick answers to quick questions... - Statyk - 11-11-2011

(11-11-2011, 11:52 PM)sasukeroxxx Wrote: holy sh*t, works, thank you so much =)
=D Glad to help!



RE: Quick answers to quick questions... - sasukeroxxx - 11-12-2011

one more question ... :B how have I let a MonsterGrunt invisible?


RE: Quick answers to quick questions... - Statyk - 11-12-2011

(11-12-2011, 02:09 AM)sasukeroxxx Wrote: one more question ... :B how have I let a MonsterGrunt invisible?
like... an invisible monster? or the waterlurker?

If you want an invisible monster, you're going to have to go into the Model Editor and switch the monster's material with one with a blank, transparent .png... It is a bit of a process, but necessary.



RE: Quick answers to quick questions... - sasukeroxxx - 11-12-2011

oh, and to make the steps of waterlurker are on firm ground, make it look like they are on land, without showing the effects of water, it is ParticleSystems or something? Thanks !



RE: Quick answers to quick questions... - Statyk - 11-12-2011

(11-12-2011, 03:56 AM)sasukeroxxx Wrote: oh, and to make the steps of waterlurker are on firm ground, make it look like they are on land, without showing the effects of water, it is ParticleSystems or something? Thanks !
Never actually played around with a water lurker yet, but I WILL for my campaign. But as far as the particle systems, yes. That's my best guess.