Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Quick answers to quick questions...
sasukeroxxx Offline
Junior Member

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#1
Bug  Quick answers to quick questions...

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


Hallucination

Constantine - in Construction
11-09-2011, 06:52 PM
Find
Prelauncher Offline
Senior Member

Posts: 451
Threads: 11
Joined: May 2011
Reputation: 13
#2
RE: Quick answers to quick questions...

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.

Socialism (noun): A great way to run out of other people's money.
(This post was last modified: 11-09-2011, 07:54 PM by Prelauncher.)
11-09-2011, 06:59 PM
Find
sasukeroxxx Offline
Junior Member

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#3
RE: Quick answers to quick questions...

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


Hallucination

Constantine - in Construction
11-11-2011, 10:49 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: Quick answers to quick questions...

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! =]
11-11-2011, 11:05 PM
Find
sasukeroxxx Offline
Junior Member

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#5
RE: Quick answers to quick questions...

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


Hallucination

Constantine - in Construction
11-11-2011, 11:52 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: Quick answers to quick questions...

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

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#7
RE: Quick answers to quick questions...

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


Hallucination

Constantine - in Construction
11-12-2011, 02:09 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Quick answers to quick questions...

(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.
11-12-2011, 03:52 AM
Find
sasukeroxxx Offline
Junior Member

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#9
RE: Quick answers to quick questions...

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 !


Hallucination

Constantine - in Construction
11-12-2011, 03:56 AM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#10
RE: Quick answers to quick questions...

(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.

11-12-2011, 04:14 AM
Find




Users browsing this thread: 1 Guest(s)