Frictional Games Forum (read-only)
[MDL ED] Model doesnt wanna turn its head - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [MDL ED] Model doesnt wanna turn its head (/thread-25618.html)



Model doesnt wanna turn its head - Neelke - 07-06-2014

So, what I wanted to do here was to make the statue being able to look at the player. I have the model rigged and everything ready. But yet, he doesnt wanna look anywhere. Here's a pic of the model itself:

Spoiler below!
[Image: 2ckFaZN.jpg]

The joint selected (joint4) is what I've written on MoveHeadBones. The MoveHeadBonesMuls is -0.5 -0.5, just like Agrippa. What am I doing wrong here?


RE: Model doesnt wanna turn its head - DnALANGE - 07-06-2014

Did you set it as NPC in the modeleditor ( guess you already did that )
You might be able to set the MOVEPLAYERHEAD funstion to 1 bone ( red ball )
Not sure anymore, i did the same long time ago.. Just try the Moveplayerhead with all the red balls and see if it even moves at all,..


RE: Model doesnt wanna turn its head - Neelke - 07-06-2014

Gonna give it a go. Updating when I've tried.

Didn't work Sad


RE: Model doesnt wanna turn its head - DnALANGE - 07-06-2014

darnit.. i'll have to pass this one Neelke... Need to go to bed, long hard day at work tomorrow :S
When it's not fixed i'll try to look at it tomorrow.
I guess you did it already, just look exactly what Alexander has for bones.. you maybe need to do something with Maya???
Good luck pal.


RE: Model doesnt wanna turn its head - Neelke - 07-06-2014

Appreciated, man.


RE: Model doesnt wanna turn its head - The chaser - 07-07-2014

You might want to try this:

SetNPCFollowPlayer("statue", true);

Set your statue as an NPC and put this in your map script, if possible in the OnEnter section. Yeah, that'll move all the body, but it's the only way I see it working. If you had to move just one bone it'll look weird.

Besides of this, I have 0 idea... I've never used NPC's.


RE: Model doesnt wanna turn its head - PutraenusAlivius - 07-07-2014

I think you need animation but if I recall correctly, you need a monster.
One way to do it is make the statue with the head and body as separate objects. Put the headless body in the Level Editor then make the head to be static, but movable. And then use RotatePropToSpeed on the head.

Now that if it wants to glance at you shortly. As for it tracking you, that would be more tricky. You can measure how much the player moves and then using GetPlayerPos from the AAMFP update to make the head follow you, but the player can optionally run or not so it's tricky.


RE: Model doesnt wanna turn its head - DnALANGE - 07-07-2014

IF you add me onj Skype i think i can help you.
You can add me on Skype, Might be usefull if you encounter other thinks i might be able to help you.
The forum can also be a tit slow, but overall this forum is very good as quickness imo!
redmaster12345
Greetings DnALANGE