Script effect finishes instantly

Post » Sat May 28, 2011 6:24 am

Im trying to run a script in ScriptEffectUpdate block using a spell but the spell only goes through the update block once and finishes instantly after casting even tho the effect duration is set to 10 sec, what gives?
User avatar
Hussnein Amin
 
Posts: 3557
Joined: Sun Aug 05, 2007 2:15 am

Post » Sat May 28, 2011 2:01 pm

Also another question, in my script i move a bunch of skulls into a place where they are supposed to collide with eachother and explode, sometimes it works but sometimes they just hang there in midair doing nothing until i go with my character and collide them or throw something at them or whatever. I suspect their physics is disabled after a period of inactivity to save cpu but is there a way to reactivate it somehow just before i teleport them?
User avatar
Cesar Gomez
 
Posts: 3344
Joined: Thu Aug 02, 2007 11:06 am

Post » Sat May 28, 2011 10:39 am

1. You could have an error in your script. Post it up?

2. Don't use MoveTo, use PlaceAtMe instead. It enables havoc on spawned items. If you must use the MoveTo, then you may need to cast an explosion spell at the pile to enable havoc on them.
User avatar
Trey Johnson
 
Posts: 3295
Joined: Thu Oct 11, 2007 7:00 pm

Post » Sat May 28, 2011 12:28 pm

Turns out script spells dont run too well on dead npcs (which is what i was casting it on), thats why it finished so soon. PlaceAtMe isnt really an option since the amount of skulls im spawning would soon clutter the savefile to hell and im trying to keep my scripts in vanilla oblivion, as for the explosion there actually already is one in the exact next frame the skulls appear and it seems to have no effect but maybe i need to delay it more to make sure.
User avatar
Jennifer Munroe
 
Posts: 3411
Joined: Sun Aug 26, 2007 12:57 am

Post » Sat May 28, 2011 10:37 am

If you use moveTo, then there are some things you need to do with disable and enable to get the objects 'collision' and thus havoc in the same location as the visual object is.
User avatar
Nomee
 
Posts: 3382
Joined: Thu May 24, 2007 5:18 pm

Post » Sat May 28, 2011 9:14 pm

ive tried all kinds of variations of disabling/enabling the objects during the effect but no luck
User avatar
Eve Booker
 
Posts: 3300
Joined: Thu Jul 20, 2006 7:53 pm

Post » Sat May 28, 2011 6:47 pm

Did you follow this? http://geck.gamesas.com/index.php/MoveTo

You also will need to cause an explosion to start them moving. MoveTo does not make havoc work on the object by itself.
User avatar
Zosia Cetnar
 
Posts: 3476
Joined: Thu Aug 03, 2006 6:35 am


Return to IV - Oblivion