I use MobSurgeon v.0.3.7.16
My map script :
and
world script is working
mission script is working
object script is working
only teleport isn't working(i enter good place)
and i don't know what i need to add/modify in script
can you open my eyes plz
My map script :
Код:
GlobalVars (
NULL : object,
VSS#i#val : object,
i : object
)
DeclareScript VTriger#2#1 ( this : object )
DeclareScript #Teleport1 ( this : object )
DeclareScript #Teleport2 ( this : object )
DeclareScript VTriger#2#2 ( this : object )
Script VTriger#2#1
(
if
(
)
then
(
KillScript( )
QStart( "z31q1" )
QObjSeeUnit( "GetObject(1000324)" )
QObjKillUnit( "GetObject(1000324)" )
QFinish( )
ConsoleString("Mission - Work")
)
)
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
ConsoleString("Object - Work")
)
)
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("Teleport - Work")
)
)
Script VTriger#2#2
(
if
(
)
then
(
KillScript( )
ActivateTrap( Pyramid, 0 )
)
)
WorldScript
(
Sleep( 2 )
VTriger#2#1( NULL )
#Teleport1( NULL )
#Teleport2( NULL )
VTriger#2#2( NULL )
ConsoleString("WorldScript - Work")
)
and
world script is working
mission script is working
object script is working
only teleport isn't working(i enter good place)
and i don't know what i need to add/modify in script
can you open my eyes plz