[Ayuda] OnObjectMoved ...
#11

Quote:
Originally Posted by the_chaoz
View Post
Podes mediante variables indicar el lugar/piso al cual el objeto (ascensor) se dirige. (Ej: 1 piso => numero 1, 2 piso => numero 2, etc.) y cuando el objeto se detiene, segun el valor de la variable activas un timer que mueva las puertas correspondientes.
Lo Hice Y no funciona :S, raro.
Es como ke no funciona El Call o_O

pawn Code:
MoveObject(idobjeto, ...); Variable[1] = 0; Variable[1] = 1;
MoveObject(idobjeto, ...); Variable[1] = 0; Variable[1] = 2;

public OnObjectMoved(objectid)
{
    if(objectid == idobjeto)
    {
            if(Variable[1] == 1) SetTimer("AbrirPuerta1", 2000, true);
            else if(Variable[1] == 2) SetTimer("AbrirPuerta2", 2000, true);
    }
   return 1;
}
Reply


Messages In This Thread
[Ayuda] OnObjectMoved ... - by OTACON - 28.05.2012, 08:26
Respuesta: [Ayuda] OnObjectMoved ... - by [J]ulian - 28.05.2012, 13:15
Respuesta: [Ayuda] OnObjectMoved ... - by OTACON - 28.05.2012, 13:57
Respuesta: [Ayuda] OnObjectMoved ... - by [J]ulian - 28.05.2012, 14:05
Respuesta: [Ayuda] OnObjectMoved ... - by OTACON - 28.05.2012, 16:17
Respuesta: [Ayuda] OnObjectMoved ... - by TheChaoz - 28.05.2012, 21:08
Respuesta: [Ayuda] OnObjectMoved ... - by OTACON - 29.05.2012, 00:52
Respuesta: [Ayuda] OnObjectMoved ... - by TheChaoz - 29.05.2012, 02:37
Respuesta: [Ayuda] OnObjectMoved ... - by OTACON - 29.05.2012, 23:35
Respuesta: [Ayuda] OnObjectMoved ... - by TheChaoz - 30.05.2012, 02:14
Respuesta: [Ayuda] OnObjectMoved ... - by bytytus - 30.05.2012, 04:32
Respuesta: [Ayuda] OnObjectMoved ... - by the_chaoz - 30.05.2012, 18:50
Respuesta: [Ayuda] OnObjectMoved ... - by bytytus - 30.05.2012, 22:06
Respuesta: [Ayuda] OnObjectMoved ... - by the_chaoz - 30.05.2012, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)