Page 1 of 1

Finding the entity script

Posted: Tue Oct 31, 2017 1:58 pm
by EirikJ8
In the documentation it says "To enable character based Foleys and Footsteps requires "CharacterSounds" entries inside the Entity Lua script.", but when I choose the first person template, I can't find the Lua script for the first person entity. Is there any, or do I need to create a new one? I've set up all materials and footsteps scripts, but still I get the "Failed to find material for footstep sound" as I can not figure out where to add the Entity Script part.

Re: Finding the entity script

Posted: Tue Oct 31, 2017 2:44 pm
by mknmknmknjk
it is for gamesdk. there is lua files in gamesdk. do not use template.

Re: Finding the entity script

Posted: Wed Nov 01, 2017 7:43 am
by cry-thomas
Can you clarify for us which engine version you're working with and whether this is about GameSDK or a custom game project?

Re: Finding the entity script

Posted: Wed Nov 01, 2017 10:17 am
by EirikJ8
Hi,

Thanks for the replies!

This was when I opened a empty project with the first person template in 5.4. I don't really understand where you can edit parameters for the character in that game? I managed to find the entity script in the SDK project, but it didn't have much code in it?

This is probably me being a noob at Cryengine, as it's the first time I'm trying it out. But maybe the question should be: how would you go about setting up the "Character Sounds" info on a player that is for instance not controlled by .Lua? Is there an easy way to do that?

I've set up all the events in the animations, and also created the parts in the MaterialEffects script and made a player_footsteps and footsteps script in FXLibs. So I think the only thing I need to solve, is how to communicate the "footstepEffect = "footstep_player"" and "remoteFootstepEffect = "footstep"" to those scripts?

Re: Finding the entity script

Posted: Wed Nov 01, 2017 12:01 pm
by mknmknmknjk
add Volume sensor and audio trigger component to empty entity, and attach empty entity to character foot. when volume sensor touch ground play audio trigger.

check
http://docs.cryengine.com/display/CEMAN ... +Component
http://docs.cryengine.com/display/CEMAN ... +Particles
http://docs.cryengine.com/display/CEMAN ... d+PowerUps

and Animation Event

http://docs.cryengine.com/display/SDKDO ... ion+Events

Re: Finding the entity script

Posted: Wed Nov 01, 2017 12:12 pm
by EirikJ8
Thank you! I will try this :)

Re: Finding the entity script

Posted: Thu Nov 02, 2017 10:58 am
by EirikJ8
I've read up upon it now, and it seems like I have to create a Schematyc entity that detects the collision. However, then I will probably need to attach it to a joint on the character, trough the Flow Graph at game start?

The problem I have with this, is that if there's going to be a lot of different actors that has footstep sounds, I will need to attach a entity to each foot of each character, at the game start. Wouldn't it be easier to get this working trough the animation events?

Re: Finding the entity script

Posted: Mon Nov 06, 2017 6:48 pm
by cry-thomas
This documentation might be of help let me know if you have further questions.
http://docs.cryengine.com/pages/viewpag ... d=23308250
http://docs.cryengine.com/pages/viewpag ... d=23308249