(09-13-2010, 05:42 PM)Running Scared Wrote: (09-13-2010, 03:19 PM)MulleDK19 Wrote: (09-13-2010, 03:16 PM)Running Scared Wrote: Thanks for the feedback
Yes I've tried re-entering the Control Room, it defaults two of the weights back to original positions but the first one still remains stuck, my saved games only go back to the start of the cistern and when I load that saved game the weight is still stuck, I've even tried throwing box's at the stuck weight but that didn't work lol. I'm thinking my saved games maybe corrupt, if so I'll have to re-start the game.
You could change the script to add an impulse to the weight in the OnEnter() function.
If you could point me in the right area. I've looked at the "17_control_room.hps" and found The OnEnter() function but I have no knowledge how add an impulse in the script.
Thanks in advance
You have to find the name of the weight, by looking at the .map file.
I'm not sure what the name of the weight model actually is... But these entities has something to do with chains/weights, at least. You could apply an impulse to all of them.
Ton_Chain01_End_Left
Ton_Chain02_End_Left
Ton_Chain03_End_Left
Mount_Chain03_Start_Left
Mount_Chain02_Start_Left
Wheel_Chain01_End_Left
Wheel_Chain03_End_Left
Wheel_Chain02_End_Left
Ton_Chain01_End_Right
Ton_Chain02_End_Right
Ton_Chain03_End_Right
Mount_Chain03_Start_Right
Mount_Chain02_Start_Right
Then on a line in the OnEnter() function, you'd do something like
AddPropImpulse("Wheel_Chain01_End_Left", 100, 0, 0, "World")
Which would add an impulse to the entity named "Wheel_Chain01_End_Left" (100 (newtons?) on the X-axis).
Function syntax:
AddPropImpulse(string &in asName, float afX, float afY, float afZ, string &in asCoordSystem)