Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Hps...
Author Message
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #1
Hps...
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

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
(This post was last modified: 02-26-2012 08:33 PM by jessehmusic.)
02-26-2012 03:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Obliviator27 Offline
Posting Freak

Posts: 801
Joined: Jul 2011
Reputation: 65
Post: #2
RE: Hps...
Evidently your Cellarbase.hps has an error in it.

02-26-2012 04:39 PM
Find all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #3
RE: Hps...
(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

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
02-26-2012 04:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Obliviator27 Offline
Posting Freak

Posts: 801
Joined: Jul 2011
Reputation: 65
Post: #4
RE: Hps...
void OnStart. Not oid OnStart

02-26-2012 05:02 PM
Find all posts by this user Quote this message in a reply
Datguy5 Offline
Senior Member

Posts: 622
Joined: Dec 2011
Reputation: 12
Post: #5
RE: Hps...
(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
Find all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #6
RE: Hps...
(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 :/

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
02-26-2012 05:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Datguy5 Offline
Senior Member

Posts: 622
Joined: Dec 2011
Reputation: 12
Post: #7
RE: Hps...
(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);

02-26-2012 05:35 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)