[Ajuda] Cofres e portas
#14

Quote:
Originally Posted by Ermanhaut
View Post
Exemplificando a explicaзгo acima:

pawn Code:
// Cofre fechado

static Float:xv, Float:yv, Float:zv;
  xv = 0.41062; yv = 0.41062; zv = 0.82484; // Diferenзa de coordenadas da porta e do cofre
  CreateDynamicObject(19618, x, y, z, rx, ry, rz); // Crie o cofre
  CreateDynamicObject(19619, x - xv, y - yv, z - zv, rx, ry, rz); // Crie a porta calculando a diferenзa entre as coordenadas.

// Cofre aberto

static Float:xv, Float:yv, Float:zv;
  xv = 0.41062; yv = 0.41062; zv = 0.82484;
  CreateDynamicObject(19618, x, y, z, rx, ry, rz);
  CreateDynamicObject(19619, x - xv, y - yv, z - zv, rx, ry, rz - 148.0); // Para abrir o cofre, simplesmente mude o eixo Z da rotaзгo do objeto.
Tente entender e adapte ao seu cуdigo.
Eu jб tinha entendido com a explicaзгo a cima, mas vlw tambйm! Й bom que caso apareзa alguйm com essa dъvida jб tкm um exemplo ai.
Reply


Messages In This Thread
Cofres e portas - by YCharlieY - 28.10.2018, 19:57
Re: Cofres e portas - by ipsLuan - 28.10.2018, 20:00
Re: Cofres e portas - by YCharlieY - 28.10.2018, 20:04
Re: Cofres e portas - by ipsLuan - 29.10.2018, 12:48
Re: Cofres e portas - by YCharlieY - 29.10.2018, 19:55
Re: Cofres e portas - by HelderPT - 29.10.2018, 20:55
Re: Cofres e portas - by YCharlieY - 30.10.2018, 23:58
Re: Cofres e portas - by GSantana - 31.10.2018, 01:32
Re: Cofres e portas - by Ermanhaut - 31.10.2018, 01:46
Re: Cofres e portas - by GSantana - 31.10.2018, 02:27
Re: Cofres e portas - by Ermanhaut - 31.10.2018, 11:57
Re: Cofres e portas - by GSantana - 31.10.2018, 23:53
Re: Cofres e portas - by YCharlieY - 01.11.2018, 01:01
Re: Cofres e portas - by YCharlieY - 01.11.2018, 01:03
Re: Cofres e portas - by GSantana - 01.11.2018, 01:28
Re: Cofres e portas - by YCharlieY - 01.11.2018, 02:31
Re: Cofres e portas - by Ermanhaut - 01.11.2018, 05:27

Forum Jump:


Users browsing this thread: 6 Guest(s)