Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP MODDER!
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#21
RE: HELP MODDER!

(08-16-2013, 09:37 PM)albertoilmodder Wrote: Hello everyone Modder Amnesia, excuse my English, I'm Italian, I'm creating a mod and I have a problem, I wrote the script that is used to open a door with a crowbar, and I put a sound in the game but you do not hear, now I write the script below:

void OnStart ()
{
AddUseItemCallback ("", "spranga1", "porta6", "apridoor", true);
}

void apridoor (string & in item, string & in door)
{
    SetSwingDoorLocked ("porta6", false, true);
    PlaySoundAtEntity ("", "hit_wood2", "Player", 0, false);
    RemoveItem ("spranga1");
}

I did wrong, can you help me please?
Thanks in advance!

void OnStart ()
{
AddUseItemCallback ("", "spranga1", "porta6", "apridoor", true);
}

void apridoor (string & in item, string & in door)
{
SetSwingDoorLocked ("porta6", false, true);
PlaySoundAtEntity ("", "hit_wood2.snt", "Player", 0, false);
RemoveItem ("spranga1");
}


When you use a sound in a script, you must put .snt right after you write the name.

Don't worry, I understand you: I'm spanish so I can more-or-less understand italian.
Plutomaniac meant that you made a thread outside Development Support, this section. He has merged your thread with this one, and he is telling you to make all your questions in this thread, to organise everything better, like this thread:

http://www.frictionalgames.com/forum/thread-18769.html

Oh, and, please, don't say anything in that thread (it's quite old...)

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-16-2013, 11:24 PM
Find
albertoilmodder Offline
Junior Member

Posts: 29
Threads: 6
Joined: Aug 2013
Reputation: 0
#22
RE: HELP MODDER!

¡Muchas gracias! ¿Está seguro? Porque cuando lo hago una llave abre una puerta, el sonido no ponemos SNT y las obras, y luego tengo que escribir en mayúsculas o minúsculas, el punto antes snt va? Perdona que te moleste, pero no estoy muy experimentado.
08-17-2013, 09:35 AM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#23
RE: HELP MODDER!

(08-16-2013, 09:37 PM)albertoilmodder Wrote: Hello everyone Modder Amnesia, excuse my English, I'm Italian, I'm creating a mod and I have a problem, I wrote the script that is used to open a door with a crowbar, and I put a sound in the game but you do not hear, now I write the script below:

void OnStart ()
{
AddUseItemCallback ("", "spranga1", "porta6", "apridoor", true);
}

void apridoor (string & in item, string & in door)
{
    SetSwingDoorLocked ("porta6", false, true);
    PlaySoundAtEntity ("", "hit_wood2", "Player", 0, false);
    RemoveItem ("spranga1");
}

I did wrong, can you help me please?
Thanks in advance!

remove hit_wood2, and write hit_wood.snt
08-17-2013, 10:29 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#24
RE: HELP MODDER!

(08-17-2013, 09:35 AM)albertoilmodder Wrote: ¡Muchas gracias! ¿Está seguro? Porque cuando lo hago una llave abre una puerta, el sonido no ponemos SNT y las obras, y luego tengo que escribir en mayúsculas o minúsculas, el punto antes snt va? Perdona que te moleste, pero no estoy muy experimentado.

Cuando se usa un sonido, siempre se pone "sonido.snt", ya que le dices al juego el sonido exacto.

When you use a sound, it's always "sound.snt", as you tell the game the exact sound.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-17-2013, 11:03 AM
Find
albertoilmodder Offline
Junior Member

Posts: 29
Threads: 6
Joined: Aug 2013
Reputation: 0
#25
RE: HELP MODDER!

ok, ahora trato y luego te digo

No funciona, que hago?
(This post was last modified: 08-17-2013, 12:44 PM by albertoilmodder.)
08-17-2013, 11:49 AM
Find
albertoilmodder Offline
Junior Member

Posts: 29
Threads: 6
Joined: Aug 2013
Reputation: 0
#26
RE: HELP MODDER!

????????????????
08-19-2013, 03:32 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#27
RE: HELP MODDER!

Pon tu script y toda la información posible, por favor.

Put your script and all the possible information, please.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-19-2013, 04:17 PM
Find
albertoilmodder Offline
Junior Member

Posts: 29
Threads: 6
Joined: Aug 2013
Reputation: 0
#28
RE: HELP MODDER!

void OnStart()
{
AddUseItemCallback("", "spranga1", "porta6", "apridoor", true);

}


void apridoor(string &in item, string &in door)
{
SetSwingDoorLocked("porta6", false, true);
PlaySoundAtEntity("", "hit_wood2.snt", "Player", 0, false);
RemoveItem("spranga1");
}
08-20-2013, 06:54 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#29
RE: HELP MODDER!

(08-20-2013, 06:54 PM)albertoilmodder Wrote: void OnStart()
{
AddUseItemCallback("", "spranga1", "porta6", "apridoor", true);

}


void apridoor(string &in item, string &in door)
{
SetSwingDoorLocked("porta6", false, true);
PlaySoundAtEntity("", "hit_wood2.snt", "Player", 0, false);
RemoveItem("spranga1");
}

Okay, the sound "hit_wood2.snt" doesn't exist. Use "hit_wood.snt" instead, as it will randomize between 4 different sounds.

If you really need to play hit_wood2, use this instead PlaySoundAtEntity:

PlayMusic("hit_wood2.ogg", false, 1, 1, 0.5, false);

Vale, el sonido "hit_wood2.snt" no existe. Usa "hit_wood.snt" en su lugar, ya que escogerá un sonido aleatorio hit_wood1 a hit_wood4.

Si realmente necesitas hit_wood2, usa esto en lugar de PlaySoundAtEntity.

PlayMusic("hit_wood2.ogg", false, 1, 1, 0.5, false);

Con lo que quedaría esto:

void OnStart()
{
AddUseItemCallback("", "spranga1", "porta6", "apridoor", true);

}


void apridoor(string &in item, string &in door)
{
SetSwingDoorLocked("porta6", false, true);
PlayMusic("hit_wood2.ogg", false, 1, 1, 0.5, false);
RemoveItem("spranga1");
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
08-21-2013, 07:24 AM
Find
albertoilmodder Offline
Junior Member

Posts: 29
Threads: 6
Joined: Aug 2013
Reputation: 0
#30
RE: HELP MODDER!

Muchas gracias, funciona
08-21-2013, 12:22 PM
Find




Users browsing this thread: 4 Guest(s)