Landing Markers?

Post » Tue Jun 19, 2012 12:23 pm

I searched the forum and found out that Dragons can only land on specific markers. That's interesting because I assumed they had some kind of free-flying as opposed to having scripted flight.

Anyway.

Do you think it would be possible to create a spell that had a script allowing the player to 'jump to' these markers? For example 'land' in the same way a Dragon does on these markers. Say from the ground where the player is standing.

This way casting the spell would say thrust the player to the nearest 'landing marker' within a given radius?

The idea would be to give the effect that the player is 'leaping' onto a roof. Since I believe I saw landing markers set on roofs of buildings and what not.

In case your curious I'm trying to develop a sort of character jump spell. Since I can't have what I want I'm looking for a work around. I'd like to avoid using script extenders if I can because they ask more from the user to do and I intend to make mods easy to download, install and use.
User avatar
Anthony Rand
 
Posts: 3439
Joined: Wed May 09, 2007 5:02 am

Post » Tue Jun 19, 2012 9:41 am

I was very seriously looking into something like this for a mod that would let the player inherit "vampire leapy" like in (ahem) that one novel that (ahem) of course someone of my age and sophistication would never read (ahem).

Anyway, never yet did find a way to make it work. Morrowind had a cool way to move objects but not actors along a trajectory, and PushActorAway turns your into a crumpled ragdoll for the trip, and you take fall damage.

Of course that is easily enough overcome, but how to handle "throwing" the player, and have them play a smooth animation for the distance, is still on my "todo" list.
User avatar
u gone see
 
Posts: 3388
Joined: Tue Oct 02, 2007 2:53 pm

Post » Tue Jun 19, 2012 11:34 am

I was very seriously looking into something like this for a mod that would let the player inherit "vampire leapy" like in (ahem) that one novel that (ahem) of course someone of my age and sophistication would never read (ahem).

Anyway, never yet did find a way to make it work. Morrowind had a cool way to move objects but not actors along a trajectory, and PushActorAway turns your into a crumpled ragdoll for the trip, and you take fall damage.

Of course that is easily enough overcome, but how to handle "throwing" the player, and have them play a smooth animation for the distance, is still on my "todo" list.

Well what script handles landing for dragons? Have you tried duplicating the landing script and making edits for it to work on the player?

Don't worry if you read Twilight. Vampires leaping or flying was in movies and literature far before immortal, sparkly-skinned vegetarians started doing it.




EDIT: If you recall the falling animation on the player looks like he/she is waving their hands. I played around with a TranslateTo script for moving the player and it worked (kind of). One side effect was that my character was flying across the ground flapping his arms. It looked cool the problem was once I fired the spell my character never stopped moving.

At this point I feel like if I knew Papyrus and the CK better I'd be clever enough to just do what I'm trying to do. I hate that feeling :P
User avatar
Alexandra Ryan
 
Posts: 3438
Joined: Mon Jul 31, 2006 9:01 am

Post » Tue Jun 19, 2012 2:56 pm

For example i wrote this script:

Scriptname VampireCelerityScript extends activemagiceffect  Actor Property Player AutoEvent OnEffectStart(Actor Target, Actor Caster)	 Player = Game.GetPlayer()	 If (Target == Game.GetPlayer())   	  Player.SetMotionType(Player.Motion_Keyframed)   	  Player.TranslateTo(100.0, 100.0, 100.0, 0.0, 0.0, 0.0, 500.00)		 EndIfEndEvent


It works. What happens is my character soars into the air (if he is below the coordiantes listed in the first three unites). He will fly through all terrain and map to get to those coordiantes. Once there he falls to the ground and lands taking no damage.

I had to use MotionKeyframe because using Dynamic just makes your character fall through the world and crash the game.

What would be great is if I could somehow teach this script to just thrust the character up into the air freely. Sort of like the push effect but removing the ragdoll so that it uses the falling animation instead. this way you could just aim my spell and your character would launch in the direction aimed and you could land safely taking no damage where it was you landed.
User avatar
adame
 
Posts: 3454
Joined: Wed Aug 29, 2007 2:57 am

Post » Tue Jun 19, 2012 8:02 am

I see 2 problems with landing your character on dragon markers. Technically I doubt it would be too tough to accomplish, but...

The first is the dragon landing markers origin point is under the "furniture entrance marker" which tends to hang out over the edge of the buildings they're on. If you translated the player to that location they'd probably just fall. Could probably be overcome somehow though.

The second is you'd run into the issue I did with my thievery mod, in that a lot of rooftop spaces are unfinished. Since Bethesda never expected the player to get on top of some of those areas, there's holes in the roofs and lack of collision. Windhelm is absolutely the worst for this, the elf district took me quite a bit of time just to plug the holes and add collision.

And you'd have to be careful to make sure the player couldn't use it to jump out of the city cell, but that's nothing some judicious use of collision markers wouldn't fix.
User avatar
Stephy Beck
 
Posts: 3492
Joined: Mon Apr 16, 2007 12:33 pm

Post » Tue Jun 19, 2012 2:58 pm

Man. Bethesda is really loading up the mule with this one.

I had no idea about the collision of rooftops. Thanks for that info.
User avatar
Davorah Katz
 
Posts: 3468
Joined: Fri Dec 22, 2006 12:57 pm


Return to V - Skyrim