Hi
Telepor is working ...
but now, another problem, this teleport is working only for server admin, not for other players, maybe u know why ?
Can u help me second time ?
Script:
Telepor is working ...
but now, another problem, this teleport is working only for server admin, not for other players, maybe u know why ?
Can u help me second time ?
Script:
Код:
GlobalVars (
NULL : object,
VSS#i#val : object,
i : object,
Heroes : group
)
DeclareScript VTriger#2#1 ( this : object )
DeclareScript #Teleport1 ( this : object )
DeclareScript #TeleportTarget ( this : object )
DeclareScript #Teleport2 ( 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( 1, 337.8, 233.8, 18, 0.5, "PortalStar" )
CreateParticleSource( 2, 341.7, 233.7, 18, 0.5, "PortalStar" )
CreateParticleSource( 3, 339.8, 235.5, 18, 0.5, "PortalStar" )
CreateParticleSource( 4, 86.4, 193.6, 12.5, 0.5, "PortalStar" )
CreateParticleSource( 5, 88.35, 195.5, 12.5, 0.5, "PortalStar" )
CreateParticleSource( 6, 90.3, 193.5, 12.3, 0.5, "PortalStar" )
CreateParticleSource( 7, 339.8, 233.7, 16.5, 0.75, "Portal" )
ConsoleString("Object - Work")
)
)
Script #TeleportTarget
(
if
(
)
then
(
KillScript( )
For( VSS#i#val, Heroes )
(
#Teleport2( VSS#i#val )
ConsoleString("Target - Work")
)
)
)
Script #Teleport2
(
if
(
IsLess( GetX( this ) , 341.6 )
IsLess( GetY( this ) , 235.39 )
IsGreater( GetX( this ) , 337.91 )
IsGreater( GetY( this ) , 231.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")
)
)
WorldScript
(
Sleep( 2 )
VTriger#2#1( NULL )
#Teleport1( NULL )
#TeleportTarget( NULL )
ConsoleString("WorldScript - Work")
)