I need a simple OnSpawn script that will freeze a creature in a certain animation pose and turn them into a statue. I need about a dozen of these and don't feel like making placeables since it might be possible to "revive" the statues under certain circumstances. I've tried the various statue scripts floating around, but can't seem to get anything other than the infamous "da Vinci" pose. Anyone got any ideas?
RE: Help with Statue Script
#1
Posté 31 octobre 2015 - 04:50
#2
Posté 31 octobre 2015 - 05:42
I fought with that a bit trying to make my tailor models. In that case I wanted to keep it in the da vinci pose. But then I couldn't keep it there when I resized it for the particular PC... anyway, have you tried delaying the freeze a few seconds? Freezing in the spawn path directly tends to stop it from even running the base standing animation. I don't know if there is a way to freeze in any other animation.
#3
Posté 31 octobre 2015 - 05:56
I tried something like this in the past and a DelayCommand works okay but there is a rather large caveat/problem as described in this thread: http://forum.bioware...ures/?p=7484402
#4
Posté 31 octobre 2015 - 06:55
Thanks for the link, Leo. After reading through that thread again, it looks like my "garden" of statues will be better implemented as placeables rather than petrified creatures - allowing me to avoid the glitches listed in the various posts throughout that thread.
#5
Posté 31 octobre 2015 - 09:16
Sadly, they reanimate once out of sight - glitches as you mention - so yes, please make a petrified version of every creature and stock NPC as a placeable statue. That will help everyone.
FP!
- Verilazic aime ceci
#6
Posté 31 octobre 2015 - 09:53
Sadly, they reanimate once out of sight - glitches as you mention - so yes, please make a petrified version of every creature and stock NPC as a placeable statue. That will help everyone.
FP!
LOL
#7
Posté 02 novembre 2015 - 01:05
Sadly, they reanimate once out of sight - glitches as you mention - so yes, please make a petrified version of every creature and stock NPC as a placeable statue. That will help everyone.
FP!
Don't forget CEP an Q as well! And I want multiple poses. And a pony.
Okay, all joking aside--you can leave out the pony. ![]()
#8
Posté 02 novembre 2015 - 01:19
I opted for a different solution - "sleeping" villagers vs. petrified ones. Just as cliche, but much easier to implement, not to mention far more stable.
#9
Posté 02 novembre 2015 - 01:38
NPC statues are albeit a bit wonky at times, but still decent enough to use. Here's a link to the ones I dropped on the Vault awhile back.
http://neverwinterva...c-statues-redux
- Pstemarie aime ceci
#10
Posté 02 novembre 2015 - 11:41
Hey thanks, I'll have to give those a try. Somehow I missed that little gem while searching the Vault.
#11
Posté 02 novembre 2015 - 02:26
When we are talking about petrified - are we referring to the effectPetrified?
Why not try EffectCutsceneFreeze -
And then use EffectVisualEffect to apply stoned skin.
You may still get the issue of them doing the da-vinci pose on area entry etc
But the freeze effect shouldnt be removed in any case.
#12
Posté 02 novembre 2015 - 05:58
Starting to see that for the amount of time I've wasted trying to get/make scripts that actually work without relying on the PC being in perception range, I could have just converted the models to placeables and been done with it. ![]()
#13
Posté 02 novembre 2015 - 06:12
There are rat holes... been down a few myself.
- Pstemarie et Verilazic aiment ceci
#14
Posté 02 novembre 2015 - 11:34
Had to compromise and settle for scripted statues that animate for just a moment then freeze. I took Kalbaern's scripts and modified to the OnSpawn event to work as an OnPerception event. The statues seem to hold the chosen pose, even when the PC moves out of perception range or leaves the area - so its slightly more reliable (at least in my experience).
I tried making placeable statues, but the models I want to use for the villagers all have skins, and, although the statues loaded fine in the toolset, they crashed the game. My guess is that the game doesn't like placeables with skinmesh.
I'll give the OnPerception script below - the OnConversation script is unmodified.
I opted for using a local variable on the creature to store the animation rather than using a random animation. If no variable is stored, then the script will default to ANIMATION_LOOPING_CONJURE1 animation.
EDIT - EPIC FAIL...worked great with one NPC statue, but the moment I added more statues, the entire routine went all wonky. So its back to OnSpawn, which works adequately as long as the PC doesn't move right in once the statues OnPerception event fires and they animate.





Retour en haut







