The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help String?
Saren Offline
Member

Posts: 196
Threads: 20
Joined: Jan 2012
Reputation: 1
#1
String?

It was mentioned to me I need to make variables to strings... or something, in my .hps file.. how does that work exactly, I have tried to find something about it without luck..... can anyone clarify? The .hps file looks like this:
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "Masterbedroomkey", "masterbedroomdoor", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("masterbedroomdoor", false, true);
PlaySoundAtEntity("", "unlock_door", "masterbedroomdoor", 0, false);
RemoveItem("Masterbedroomkey");
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
As you can see, no errors, but apparently still wrong since my key won't open the door it suppose to

02-08-2012, 08:54 AM
Find


Messages In This Thread
String? - by Saren - 02-08-2012, 08:54 AM
RE: String? - by flamez3 - 02-08-2012, 09:10 AM
RE: String? - by Saren - 02-08-2012, 09:24 AM
RE: String? - by Your Computer - 02-08-2012, 09:32 AM
RE: String? - by Saren - 02-08-2012, 09:34 AM
RE: String? - by Your Computer - 02-08-2012, 09:39 AM
RE: String? - by Saren - 02-08-2012, 09:45 AM
RE: String? - by flamez3 - 02-08-2012, 10:11 AM
RE: String? - by Saren - 02-08-2012, 10:20 AM



Users browsing this thread: 1 Guest(s)