A small scripting question

Post » Tue Jun 19, 2012 12:21 am

Hi,

I just have a small beginners question, or thing I want some help with:

I'm currently working on a dungeon that's going to have a dragon in it. However I obviously don't want it to be able to fly since in a dungeon environment. Apart from not looking right at all with the dragon flying through walls, floors etc., it also messes up the combat.
So I'm trying to put together a small script that check if the dragon is in my dungeon, then disables flight if it is. But I can't seem to get it right.

Any helpful answers are much appreciated :smile:
User avatar
Lalla Vu
 
Posts: 3411
Joined: Wed Jul 19, 2006 9:40 am

Post » Tue Jun 19, 2012 5:53 am

Cant access the CK where i am to check this or find it, but i remember in the Labyrinthian quest, there is a Bone Dragon that stays on the ground and attacks you.

Not sure how beth handled this, perhaps this is a diffrent dragon altogether that isnt able to fly to begin with, or perhaps theres a script or something that can help you out.
Might be a worth checking :shrug:
User avatar
courtnay
 
Posts: 3412
Joined: Sun Nov 05, 2006 8:49 pm

Post » Tue Jun 19, 2012 3:26 am

Hi,

I just have a small beginners question, or thing I want some help with:

I'm currently working on a dungeon that's going to have a dragon in it. However I obviously don't want it to be able to fly since in a dungeon environment. Apart from not looking right at all with the dragon flying through walls, floors etc., it also messes up the combat.
So I'm trying to put together a small script that check if the dragon is in my dungeon, then disables flight if it is. But I can't seem to get it right.

Any helpful answers are much appreciated :smile:
This should be in the CK section :P

But anyways, Actors have a function that determines if they can fly. http://www.creationkit.com/SetAllowFlying_-_Actor is probably what you're looking for. You could make a copy of the dragon you want, attach a script that prevents it from flying and put that dragon in your dungeon. Another way would be through Quest Aliases. Make a script that extends ReferenceAlias, attach it to a reference alias that points to your dragon, and have the script prevent that dragon from flying. There are probably other ways of going about this but those were the first two that came to mind.
User avatar
Daniel Lozano
 
Posts: 3452
Joined: Fri Aug 24, 2007 7:42 am

Post » Tue Jun 19, 2012 3:04 am

Simply add the AbNoFlight ability to your dragon and it should work fine without any need for scripts or altering races.
User avatar
Alada Vaginah
 
Posts: 3368
Joined: Sun Jun 25, 2006 8:31 pm

Post » Mon Jun 18, 2012 2:11 pm

Hi, thanks for the replies :smile:

I'll try all the different ways you suggested and see what I think works best.
User avatar
Hilm Music
 
Posts: 3357
Joined: Wed Jun 06, 2007 9:36 pm


Return to V - Skyrim