Jump to content

Script troubles....


claustro

Recommended Posts

Hello everybody,

 

I am a french player of skyrim and i tried to make a script who allows the caster to move to a cell and after to come back wher he come from. But it doesnt work ithink i got a problem with my script.

 

ScriptName AdsScriptTeleportation Extends activemagiceffect
{Sort de téléportation au manoir}

Actor Property PlayerREF Auto

ObjectReference Property AdsMark001 Auto
ObjectReference Property AdsMark002 Auto

GlobalVariable Property AdsVarTele Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

If AdsVarTele.GetValue() == 0
	AdsMark001.MoveTo(PlayerREF)
	PlayerREF.MoveTo(AdsMark002)
	AdsVarTele.SetValueInt(1)
ElseIf 	AdsVarTele.GetValue() == 1
	PlayerREF.MoveTo(AdsMark001)
	AdsMark001.MoveTo(AdsMark002)
	AdsVarTele.SetValueInt(0)
EndIf

EndEvent

 

Thanks a lot

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...