Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster and music issue
Author Message
Rownbear Offline
Member

Posts: 157
Joined: Apr 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Rownbear Offline
Member

Posts: 157
Joined: Apr 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Rownbear Offline
Member

Posts: 157
Joined: Apr 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Rownbear Offline
Member

Posts: 157
Joined: Apr 2011
Reputation: 2
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)