Frictional Games Forum (read-only)

Full Version: Hps...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Evidently your Cellarbase.hps has an error in it.
(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
void OnStart. Not oid OnStart
(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
(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 :/
(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);