Problem with chest
#1
I've put zone8 to multiplayer, everything works coretly. I've deleted whole script from singleplayer and tried to make my own. I wanted to put a chest, which is able to open, but it doesn't work
Код:
GlobalVars (
 NULL : object,
 VSS#i#val : object,
 i : object,
 Heroes : group,
 Chest1 : object
)
DeclareScript VCheck#0#1 (  this : object )
DeclareScript VCheck#0#2 (  this : object )
DeclareScript VTriger#0#4 (  this : object )
DeclareScript #OnBriefingComplete (  nPlayer : float,  szComplete : string )

Script VCheck#0#1
(
 if
 (
   IsEqual( GetLeverState( Chest1 ) , 0 )
 )
 then
 (
   KillScript(  )
   VCheck#0#2( this )
 )
)

Script VCheck#0#2
(
 if
 (
   IsEqual( GetLeverState( Chest1 ) , 1 )
 )
 then
 (
   KillScript(  )
   VTriger#0#4( this )
 )
)

Script VTriger#0#4
(
 if
 (
 )
 then
 (
   KillScript(  )
   GiveMoney( 0, 500 )
 )
)

WorldScript
(
 ConsoleString ( "test")
 Sleep( 2 )
 Chest1 = GetObjectByID( "1670" )
 VCheck#0#1( NULL )
 VCheck#0#2( NULL )
 VTriger#0#4( NULL )
)
When I go on map and open console I see the console string "test", but when I'm close to chest and I want to open it, i'm not able to do this, like it has been closed by key (I've changed the value "Key" from this object on 0). Any ideas what am I doing wrong?
Ответ


Сообщения в этой теме
Problem with chest - от Mikelos - 01.09.2008, 22:10
Problem with chest - от ALtair - 02.09.2008, 00:52
Problem with chest - от Mikelos - 02.09.2008, 18:59

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)