![]() |
Statemachine and cameras
Hello
I am stuck in the middle of my mod trying to solve an issue with statemachine controlers. What I am trying to do is to make an animation of a 3D object (until here ok thanks to Anvart explanations in the forums and other modders' work) but at some point of the animation, I need that the camera change to another station automatically. I guess it is possible, because in the game there is a "similar" situation: when you are in the conningdeck and order periscope depth, at some depth value the camera is changed automatically to Conning tower, I guess this is done using a statemachine approach, with a couple conditions, first to check if you are in conningdeck/flak gun/deck gun, and the second one, if depth is greater than some value. But which is the "action" that makes the camera to change station? I have searched sh3.exe and statemachine files with an HEX editor, but unless I have missed something, I have not found any string that hints that. I have checked the dat files in library folder, but I have not found neither a clue. I really need to do that... Have I missed some file? Could someone please, help me? even a little :DL? A hint? Tx |
Surely I'm totally wrong with this, but in Commands_en.cfg I've found camera entries assigned to some commands and, if I remember correctly, something like GO_BACK-camera entries. (out of my memory - I'm not at home).
|
Hey, thanks for answer!
I know that command, but then that would mean that we could use any command in the "Name" field of Conditions/Actions/Name of the StateMachineClass (and leave empty the "Value" field)? For example, instead of PlayAnim or StopAnim? I didn't know that. When I get home I'll try, if it works, you'll make me happy :D Tx |
Tested but it does not work :cry:. I have tested different combinations of "Name" and "value" fields, but without luck.
I wonder still how is it done for the case described in my first post. |
All times are GMT -5. The time now is 04:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.