Short Range Teleportation

Post » Wed Sep 08, 2010 3:22 am

I would like to make a scripted spell, cast on target, which teleports the caster to the targeted actor, but is not too disorienting, so the player appears facing the person. I know how to script the player to move to the enemy, but i need help making it so that they appear facing the same way they were when they cast the spell, on the side of the target the spell hits. Any ideas?

Edit: Problem solved. I have got it to work so that the player always appears a couple feet behind the target, facing its back.
User avatar
James Shaw
 
Posts: 3399
Joined: Sun Jul 08, 2007 11:23 pm

Post » Wed Sep 08, 2010 9:52 am

I would like to make a scripted spell, cast on target, which teleports the caster to the targeted actor, but is not too disorienting, so the player appears facing the person. I know how to script the player to move to the enemy, but i need help making it so that they appear facing the same way they were when they cast the spell, on the side of the target the spell hits. Any ideas?

Adapt http://cs.elderscrolls.com/constwiki/index.php/Summon_Object

if it's just orientation
set zAngle to player.GetAngle Z
; moveto
Player.SetAngle Z zAngle
User avatar
Alex Vincent
 
Posts: 3514
Joined: Thu Jun 28, 2007 9:31 pm

Post » Wed Sep 08, 2010 7:11 am

Ok thanks for the orientation thing. Do you know how i can set the player to appear on the side of the target they are facing? If not i could probably make the player appear behind the target facing the same way it is.

According to the CS wiki, using moveto on the player terminates the script, so I don't know if that would work right. When using moveto within a cell, do you stay facing the direction you were when the script started? that would make it easier.
User avatar
Eric Hayes
 
Posts: 3392
Joined: Mon Oct 29, 2007 1:57 am

Post » Wed Sep 08, 2010 7:22 am

Woah that sounds neat.


Oops I was wrong about what I thought the spell did.
User avatar
Shelby McDonald
 
Posts: 3497
Joined: Sat Jan 13, 2007 2:29 pm


Return to IV - Oblivion