Frictional Games Forum (read-only)

Full Version: Model doesnt wanna turn its head
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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,..
Gonna give it a go. Updating when I've tried.

Didn't work Sad
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.
Appreciated, man.
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.
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.
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