domingo, 7 de octubre de 2012

Scripts Amnesia Custom's


Amnesia Script:

.HPS

Base:

void OnStart()
{

}

void OnLeave()
{

}

void OnEnter()
{

}

///////////////////////////////////////

Llaves:

pegar en:

void OnStart()
{
    pegar aquí
}

~~~~~~~~~~~~~  (En documento .hps)





AddUseItemCallback("", "nombre_llave", "nombre_puerta", "nombre_accion_a_ejecutar", true);
}

void nombre_accion(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("nombre_puerta", false, true);
    PlaySoundAtEntity("", "Unlock_Door", "nombre_puerta", 0, false);
    RemoveItem("nombre_llave");





~~~~~~~~~~~~~  (En documento extra_english.lang)

Descripción de las llaves:




<CATEGORY Name="Inventory">
          <Entry Name="ItemName_nombre_llave">  </Entry>
  <Entry Name="ItemDesc_nombre_llave">  </Entry>
   </CATEGORY>




///////////////////////////////////////


Aparecer monstruos y otro tipo de entities:


pegar en:

void OnStart()
{
      "aqui"
}

en .hps:

AddEntityCollideCallback("Player", "nombre_area", "nombre_accion_a_ejecutar", true, 1);
}

void nombre_accion_a_ejecutar(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("nombre_monstruo_o_entity", true);
    GiveSanityDamage(5.0f, true);

No hay comentarios:

Publicar un comentario