Login Form



Who's Online

We have 24 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.33
Time : 02:24
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 160889

 
Camera, activated by message PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 07:55
STATE_MACHINE
{
KEY { cameraMsg }
COMMENT [Camera, activated by message]

PARAM 

KEY  { 1 }
TYPE  {frame}
COMMENT [3D object: Editor Only.]
DISPLAY {}
}

PARAM
{
KEY { 2 }
TYPE {INT}
COMMENT [Msg to activate camera: ]
DEFAULT {1}
}

PARAM
{
KEY { 3 }
TYPE {ALPHA}
COMMENT [The machine the camera should look from (Key)]
}

PARAM
{
KEY { 4 }
TYPE {INT}
COMMENT [CAMERAFROM Height: (0 - 3000)]
DEFAULT {380}
}

PARAM
{
KEY { 5 }
TYPE {ALPHA}
COMMENT [The machine the camera should look at (Key)]
}

PARAM
{
KEY { 6 }
TYPE {INT}
COMMENT [CAMERATO Height: (0 - 500)]
DEFAULT {4}
}

PARAM
{
KEY { 7 }
TYPE {INT}
COMMENT [Camera Speed: (50-800) higher is faster:]
DEFAULT {700}
}
PARAM
{
KEY { 8 }
TYPE {INT} 
COMMENT [Camera Delay: How long camera focuses on CAMERATO:]
DEFAULT {10000}
}

CODE
[
TRAP
{
KEY {%0}
STATE
{
KEY  { static }
MULTI
{
CONDITION
{
MSG { %2 }
GOTO {wait}
}
}

}

STATE
{
KEY  { wait }
MULTI
{
CONDITION
{
TIMER {500}
GOTO {cam1}
}
}
}

STATE
{
KEY  { cam1 }
ACTION
{
CAMERAFROM {_CUST_%3,%4}
CAMERATO {_CUST_%5,%6}
CAMERATIME {%7,%8}
}
JUMP { stopcam }
}

STATE
{
KEY  { stopcam }
ACTION
{
CAMERATIME {300,-1}
}
MULTI
{
CONDITION
{
TIMER {5000}
GOTO {static}
}
}
}

STATE
{
KEY { fin }
}
}
]
}

STATE_MACHINE
{
KEY { cameraMsg2 }
COMMENT [Camera, activated by message. waits till your near to start.]

PARAM 

KEY  { 1 }
TYPE  {frame}
COMMENT [3D object: Editor Only.]
DISPLAY {}
}

PARAM
{
KEY { 2 }
TYPE {INT}
COMMENT [Msg to activate camera: ]
DEFAULT {1}
}

PARAM
{
KEY { 3 }
TYPE {ALPHA}
COMMENT [The machine the camera should look from (Key)]
}

PARAM
{
KEY { 4 }
TYPE {INT}
COMMENT [CAMERAFROM Height: (0 - 3000)]
DEFAULT {380}
}

PARAM
{
KEY { 5 }
TYPE {ALPHA}
COMMENT [The machine the camera should look at (Key)]
}

PARAM
{
KEY { 6 }
TYPE {INT}
COMMENT [CAMERATO Height: (0 - 500)]
DEFAULT {4}
}

PARAM
{
KEY { 7 }
TYPE {INT}
COMMENT [Camera Speed: (50-800) higher is faster:]
DEFAULT {700}
}
PARAM
{
KEY { 8 }
TYPE {INT} 
COMMENT [Camera Delay: How long camera focuses on CAMERATO:]
DEFAULT {10000}
}

PARAM
{
KEY { 9 }
TYPE {INT}
COMMENT [Range of detection of player:]
DEFAULT { 6 }
}

CODE
[
TRAP
{
KEY {%0}
STATE
{
KEY  { static }
MULTI
{
CONDITION
{
MSG { %2 }
GOTO {wait}
}
}

}
STATE
{
KEY { wait }
MULTI
{
CONDITION
{
COLLIDEX { 1,%9,1 }
GOTO  { activate }
}
}
}
STATE
{
KEY  { activate }
MULTI
{
CONDITION
{
TIMER {500}
GOTO {cam1}
}
}
}

STATE
{
KEY  { cam1 }
ACTION
{
CAMERAFROM {_CUST_%3,%4}
CAMERATO {_CUST_%5,%6}
CAMERATIME {%7,%8}
}
JUMP { stopcam }
}

STATE
{
KEY  { stopcam }
ACTION
{
CAMERATIME {300,-1}
}
MULTI
{
CONDITION
{
TIMER {5000}
GOTO {static}
}
}
}

STATE
{
KEY { fin }
}
}
]
}