Hi
What is wrong in this script ?
i need teleport to object 999451 location when i enter place:
can you tell me what is wrong in this scrip that it's not working ?
i look into one of ei-mod .mob file and i copied the teleport scrip from them and it's not working in my map :/
plz help
What is wrong in this script ?
Код:
Script #Teleport1
(
if
(
IsEqual( GetLeverState(GetObject(1918)) , 1 ) // object to use to open teleport
)
then
(
KillScript( )
CreateParticleSource( 7, 142.8, 38.7, 1.5, 0.75, "Portal" ) // teleport animation
)
)
Script #Teleport2
(
if
(
IsLess( GetX( this ) , 135.6 )
IsLess( GetY( this ) , 30.39 )
IsGreater( GetX( this ) , 150.91 )
IsGreater( GetY( this ) , 45.83 )
IsEqual( GetLeverState(GetObject(1918)) , 1 )
)
then
(
KillScript( )
SwitchLeverState(GetObject(1918), 0 )
CreateParticleSource( GetObjectId( this ), GetX( this ), GetY( this ), GetZValue( GetX( this ), GetY( this ) ), 1, "Teleport" )
CreateFX( GetX( this ) , GetY( this ) , GetZValue( GetX( this ), GetY( this ) ), 15, 30, "Toolszombi.wav" )
CreateParticleSource( GetObjectId( GetObject(999451) ), GetX( GetObject(999451) ), GetY( GetObject(999451) ), GetZValue( GetX( GetObject(999451) ), GetY( GetObject(999451) ) ), -1, "Teleport" )
CreateFX( GetX( GetObject(999451) ) , GetY( GetObject(999451) ) , GetZValue( GetX( GetObject(999451) ), GetY( GetObject(999451) ) ), 15, 30, "magicTeleportstart.wav" )
Sleep( 15 )
SetCP( this, GetX( GetObject(999451) ) , GetY( GetObject(999451) ) , 0 )
ConsoleString("tp2 - Ok")
)
)
i need teleport to object 999451 location when i enter place:
Код:
(
IsLess( GetX( this ) , 135.6 )
IsLess( GetY( this ) , 30.39 )
IsGreater( GetX( this ) , 150.91 )
IsGreater( GetY( this ) , 45.83 )
IsEqual( GetLeverState(GetObject(1918)) , 1 )
)
can you tell me what is wrong in this scrip that it's not working ?
i look into one of ei-mod .mob file and i copied the teleport scrip from them and it's not working in my map :/
plz help