Frictional Games Forum (read-only)
Hps... - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Hps... (/thread-13603.html)



Hps... - jessehmusic - 02-26-2012

Hello why does only my hps work when i have 01.map atm i have Cellarbase.map and made a Cellarbase.hps and it dosnt work Sad whats the issue


RE: Hps... - Obliviator27 - 02-26-2012

Evidently your Cellarbase.hps has an error in it.



RE: Hps... - jessehmusic - 02-26-2012

(02-26-2012, 04:39 PM)Obliviator27 Wrote: Evidently your Cellarbase.hps has an error in it.

oid OnStart()

{
AddUseItemCallback("", "The Lost Key", "Lockeddoor_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Lockeddoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Lockeddoor_1", 0, false);
RemoveItem("The Lost Key");
}

void OnEnter()

{

}

void OnLeave()

{

}

cant find any errors


RE: Hps... - Obliviator27 - 02-26-2012

void OnStart. Not oid OnStart



RE: Hps... - Datguy5 - 02-26-2012

(02-26-2012, 04:43 PM)jessehmusic Wrote:
(02-26-2012, 04:39 PM)Obliviator27 Wrote: Evidently your Cellarbase.hps has an error in it.

oid OnStart()

{
AddUseItemCallback("", "The Lost Key", "Lockeddoor_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Lockeddoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Lockeddoor_1", 0, false);
RemoveItem("The Lost Key");
}

void OnEnter()

{

}

void OnLeave()

{

}

cant find any errors
you have oid on start it should be void OnStart()
XD


RE: Hps... - jessehmusic - 02-26-2012

(02-26-2012, 05:02 PM)Datguy5 Wrote:
(02-26-2012, 04:43 PM)jessehmusic Wrote:
(02-26-2012, 04:39 PM)Obliviator27 Wrote: Evidently your Cellarbase.hps has an error in it.

oid OnStart()

{
AddUseItemCallback("", "The Lost Key", "Lockeddoor_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Lockeddoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Lockeddoor_1", 0, false);
RemoveItem("The Lost Key");
}

void OnEnter()

{

}

void OnLeave()

{

}

cant find any errors
you have oid on start it should be void OnStart()
XD
still dosnt work :/


RE: Hps... - Datguy5 - 02-26-2012

(02-26-2012, 05:33 PM)jessehmusic Wrote:
(02-26-2012, 05:02 PM)Datguy5 Wrote:
(02-26-2012, 04:43 PM)jessehmusic Wrote:
(02-26-2012, 04:39 PM)Obliviator27 Wrote: Evidently your Cellarbase.hps has an error in it.

oid OnStart()

{
AddUseItemCallback("", "The Lost Key", "Lockeddoor_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Lockeddoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Lockeddoor_1", 0, false);
RemoveItem("The Lost Key");
}

void OnEnter()

{

}

void OnLeave()

{

}

cant find any errors
you have oid on start it should be void OnStart()
XD
still dosnt work :/

oh : ( try replacing the void keyondoor with this void KeyOnDoor(string &in asItem, string &in asEntity);