Making The Player Talk.

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Making The Player Talk.

Post by metal_head »

What's the best entity to do this:
In my game I want to make the player talk also his friends to call him on the radio and he to talk with them.I want all that to be like Serious Sam (if you remember,serious sam talks and sometimes comments the bad guys) I want to make this in my game too.Now I want to make it when the player steps on a trigger (or kills a special enemy which will activate a trigger when dies)
And for thoose,who don't know what I'm talking about,here's a video:
http://www.youtube.com/watch?v=EFit2B3d ... re=related
In serious sam 2 when Sam talks,subs appear and you can even read what he says,I don't need that I just want to know the best way to do that.
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Making The Player Talk.

Post by Danimita92 »

A pawn that's activated by a trigger
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Making The Player Talk.

Post by metal_head »

so that can be made with a script?
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Making The Player Talk.

Post by Danimita92 »

Yeah it's just making sounds being played, and images or texts (for subtitles) being showed on the screen
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Making The Player Talk.

Post by metal_head »

I don't need subtitles,I just need the sound to be played,but how can this be made,
PlaySound(); will play the sound,but the sound will come out from the pawn not from the player.
Or something else has to be done?
Danimita92
Posts: 335
Joined: Sat Feb 09, 2008 5:47 pm
Location: Lanzarote/Canary Islands/Spain

Re: Making The Player Talk.

Post by Danimita92 »

I'm sorta busy to look at all the commands right now, but you could attach the pawn that has this script onto the player, to then make the sound come out of the player.
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Making The Player Talk.

Post by metal_head »

well,I want the player to talk very often so...I'll have to attatch about 20 pawns to the player in a level...maybe Juutis can help...oh,no he's also busy..well,isn't there another way to do all this (without scripting)?
User avatar
creekmonkey
Posts: 116
Joined: Tue Oct 23, 2007 2:55 pm

Re: Making The Player Talk.

Post by creekmonkey »

Couldnt you use just one pawn and different orders for each sound you want played, depending on which trigger is activated? Or possibly even different if statements in the same order?
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Making The Player Talk.

Post by metal_head »

you're right,I'll start working on this and because I suck at scripting yet,I'll post this in Scripting :) I'll really need some help for that

EDIT: OK,so I made a new topic in scripting with my started script,but I have some problems,making the script check if a trigger is activated,so a little help would be nice!
starop
Posts: 2
Joined: Sat Mar 14, 2009 6:34 pm

Re: Making The Player Talk.

Post by starop »

im a n00bie at scripting and i also need to make some one talk can some one show me the script please????
User avatar
paradoxnj
RF2 Dev Team
Posts: 1328
Joined: Wed Mar 01, 2006 7:37 pm
Location: Brick, NJ
Contact:

Re: Making The Player Talk.

Post by paradoxnj »

This is more about scripting than sound. Moved to Scripting forum.
Many Bothans died to bring you this signature....
Post Reply