Keeping a dragon in place

Post » Tue Jun 19, 2012 6:37 am

I'm trying to keep a dragon sitting in one place but I can't find the correct AIpackages. If I use standard stayatposition packages he remains in a spot but his legs and wngs are strangely folded under it. WIth all other options I found he keeps flying (through his prison) from time to time.

Has anyone dealt with this problem before?
User avatar
Jesus Sanchez
 
Posts: 3455
Joined: Sun Oct 21, 2007 11:15 am

Post » Tue Jun 19, 2012 4:21 pm

Not sure if it would work but if you look at mq301 they call a bunch of things to keep a dragon in place by disabling flight and restraining the actor.

From MQ301,
Alias_Odahviing.GetActorRef().SetAllowFlying(false)
Alias_Odahviing.GetActorRef().SetRestrained(true)
User avatar
carla
 
Posts: 3345
Joined: Wed Aug 23, 2006 8:36 am

Post » Tue Jun 19, 2012 9:24 pm

this can be used for any enemy like? like Phantasy star online bosses:D
User avatar
Jordyn Youngman
 
Posts: 3396
Joined: Thu Mar 01, 2007 7:54 am

Post » Tue Jun 19, 2012 9:08 am

Not sure if it would work but if you look at mq301 they call a bunch of things to keep a dragon in place by disabling flight and restraining the actor.

From MQ301,
Alias_Odahviing.GetActorRef().SetAllowFlying(false)
Alias_Odahviing.GetActorRef().SetRestrained(true)

But that would have to be a script not just a AIpackage then
hmm
How would you get this so it would be always active (that was why I'd think an aipackage would be the best solution). (I'm not so good in scripting so if you could post me the script it would save me lots of headaches :D)
User avatar
Angelina Mayo
 
Posts: 3427
Joined: Wed Jan 24, 2007 4:58 am

Post » Tue Jun 19, 2012 7:25 am

That messing with the Aliases only happens in quests right?
How do I use those functions in a simle script on the Dragon that needs to stay put?
User avatar
gary lee
 
Posts: 3436
Joined: Tue Jul 03, 2007 7:49 pm

Post » Tue Jun 19, 2012 8:59 pm

Outside a quest you may try using an Actor property.
User avatar
Matt Fletcher
 
Posts: 3355
Joined: Mon Sep 24, 2007 3:48 am

Post » Tue Jun 19, 2012 7:31 pm

SO would the script the extend an actor? (Scriptname CapturedDragonScript extends Actor)

and then you set an actor property? (like: Actor Property EncDragon05FireNoScriptAez Auto) which I've set to be my unique EncDragon05FireNoScriptAez in the properties window.


Alias_Odahviing.GetActorRef().SetAllowFlying(false)--> but how do I use that property in this line?
User avatar
cutiecute
 
Posts: 3432
Joined: Wed Sep 27, 2006 9:51 am


Return to V - Skyrim