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
Monster and music issue
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#1
Monster and music issue

Hello, So I have this brute that should keep on patroling in a corridor that goes in a circle, but when the player gets too far away he disappears. Can you use like a save on the brute so he will stay patroling? (I have nodes and a script which tells him to repeat the patrol route so that isnt the case)

please help Smile

(This post was last modified: 06-27-2011, 02:18 PM by Rownbear.)
06-27-2011, 01:37 AM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: Monster dissapears

Another question regarding amb_music. I can't get this script to play off the music, as i'm tired of the leveleditor sounds system, you cant have multimple ambience sounds. So I can't get this to play

AddEntityCollideCallback("Player", "MusicAreaSewer1", "SewerMusic", false, 1);

void SewerMusic(string &in asItem, string &in asEntity)
{
StopMusic(2, 1);
PlayMusic("ambience_sewer_drip.ogg", true, 1, 2, 1, false);
}
***(OnStart Is in my script)

06-27-2011, 03:01 AM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#3
RE: Monster and music issue

Remove StopMusic(2,1); since it isn't needed, perhaps it might work then
06-27-2011, 06:15 PM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#4
RE: Monster and music issue

(06-27-2011, 06:15 PM)rojkish Wrote: Remove StopMusic(2,1); since it isn't needed, perhaps it might work then

Nope doesnt work :-\

EDIT: figured it out, I needed to use (string &in asParent, string &in asChild, int alState). Thanks for the reply tho Smile

Now If anyone knows how I can solve my monster issue it would be great! Big Grin

(This post was last modified: 06-27-2011, 06:50 PM by Rownbear.)
06-27-2011, 06:46 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#5
RE: Monster and music issue

Replace (string &in asItem, string &in asEntity) with (string &in asParent, string &in asChild, int alState) and it'll work
06-27-2011, 06:49 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#6
RE: Monster and music issue

Try this:

void SewerMusic(string &in asParent, string &in asChild, int alState)

Tongue

Edit: CRAP you beat me somehow... :/

(This post was last modified: 06-27-2011, 06:49 PM by Kyle.)
06-27-2011, 06:49 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#7
RE: Monster and music issue

Just so you ALL know; Rownbear edited his post 07:50, therefor, I was 1 minute ahead of him, making me the one who solved this HUGE problem. Thumbs up.
06-27-2011, 06:51 PM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#8
RE: Monster and music issue

(06-27-2011, 06:51 PM)rojkish Wrote: Just so you ALL know; Rownbear edited his post 07:50, therefor, I was 1 minute ahead of him, making me the one who solved this HUGE problem. Thumbs up.

Haha, well done! Big Grin I probably wrote while you posted xD

06-27-2011, 07:08 PM
Find




Users browsing this thread: 2 Guest(s)