I remember a mod that does exactly what I'm trying to do, but I can't find it anywhere. The mod added a carnival game where you knock down bottles, and then you could set them back up. That's what I need to do.
Here's what I'm trying to accomplish:
1. I need to link any number of havok objects to a single reference that can effect each linked ref through a script.
[img]http://dl.dropbox.com/u/2961514/Help%20%26%20Tutorials/_01.jpg[/img]
2. The objects should work as normal, so the player can move them, or shoot them around the area.
[img]http://dl.dropbox.com/u/2961514/Help%20%26%20Tutorials/_02.jpg[/img]
3. Then, once the player has left the area (or an activator is triggered), they reset back to their editor locations.
[img]http://dl.dropbox.com/u/2961514/Help%20%26%20Tutorials/_01.jpg[/img]
I found a function "Reset3DState" that sounds like what I need, but I can't get it to work.
I've even tried attaching a script to each individual object (making them Activators - which I don't want to do), and it does nothing.
Since I can't get it to work on a single object, I haven't even tried writing a script that would send that command to every linked object yet.
I'm really stuck.
scn 000WGxHavokResetSCRIPTshort DoOnceref rMyselfBegin GameMode If (DoOnce != 1) set rMyself to GetSelf set DoOnce to 1 EndIfEndBegin OnActivate rMyself.Reset3DState; Reset3DState rMyself - tried it this way tooEnd
Also tried just this...
scn 000WGxHavokResetSCRIPTBegin OnActivate Reset3DStateEnd
I've tried this so many ways, but I don't want to bombard you with an essay. I figured I'll put it out there, and I'm sure you can all understand what I'm trying to do here. I just hope someone can help.