Sydious wrote...
Wow. Now how did you do that?
Brace yourself
Firstly, changed the statue model and pwk so you can activate it from all four sides (by putting the Use node in the centre, and making sure the walkmesh is small). Secondly, I took the placeable model, and created four vfx files, one for each direction of it moving.
The script for moving around, well, I tried to post it on the forum, but after getting annoyed at formatting I put
a txt file of it here.
To check for the statues being in the right place, I use a pseudo heartbeat fired from a trigger's on enter around the room. It basically uses the same IsInSq function to check if the statues are within one metre of some waypoints I placed. I tried to use GetIsInSubArea with triggers instead, but that apparently only works for creatures (or it didn't work how I used it, anyhow).
virusman wrote...
Placeables don't move smoothly as NPCs, though: in the client it appears if it has disappeared and then appeared in another place.
Out of interest, does that mean you get the fading in/out effect?
Edit: Just noticed the video
I'm curious, is there any way through NWNX to fire a script on every frame render? Not much use for a SP mod, but...
Also, uploaded a video of the 'final' version of the statue sliding I came up with for my mod. Excuse the noodling around, I had set it up to involve weather as well as the statues, and it conveniently started raining while I was on the way to the rain god's altar.
Modifié par _six, 29 juillet 2011 - 11:54 .