Login Form



Who's Online

We have 56 guests online

Statistics

OS : Linux t
PHP : 5.2.17
MySQL : 5.6.33
Time : 13:12
Caching : Disabled
GZIP : Enabled
Members : 3138
Content : 170
Web Links : 6
Content View Hits : 164142

 
contObj1vrAct PDF Print E-mail
Written by Mithrandir   
Thursday, 11 February 2010 08:30

STATE_MACHINE
{
KEY { contObj1vrAct }

COMMENT [This container becomes active with vrObject and gives object when opend.
Added fail if wrong object]

PARAM 

KEY  {1}
TYPE  {frame}
COMMENT [3D object: initial close]
DISPLAY {}
}

PARAM 

KEY  {2}
TYPE  {frame}
COMMENT [3D object: final open]
}

PARAM 

KEY  {3}
TYPE  {object}
COMMENT [Virtual Object to Activate Container:]
IN {}
}


PARAM 

KEY  {4}
TYPE  {object}
COMMENT [Received object :]
OUT {}
}


PARAM 

KEY  {5}
TYPE  {sound}
COMMENT [Sound to play when object B is given:]
}

PARAM
{
KEY {6}
TYPE {TEXT}
COMMENT [ what to say if wrong object used: ]
}

CODE
[
TRAP
{
KEY { %0 }
FLAG { ACTIVE|LIGHTBUFFER|LIGHT|NEEDPOS|SIDEDETECT }
STATE
{
KEY { close }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
OBJECT { %3 } 
GOTO { active }
}
}
FAIL { %6 }
}
STATE
{
KEY { active }
SETCOLLID { 1 }
FRAME { %1 }
MULTI
{
CONDITION
{
CLICK { } 
GOTO { open }
}
}
}

STATE
{
KEY { open }
SETCOLLID { 1 }
FRAME { %2 }
ACTION
{
OBJECTMOUSE { %4 }
SOUND { %5 }
}
}
}
]
}