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
Level Editor Help Combine drill in a script!
TimeSpectre Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2013
Reputation: 0
#3
RE: Combine drill in a script!

(04-05-2013, 09:49 AM)JustAnotherPlayer Wrote: Make a .txt file.
Change it's extension to .hps.
Rename it so that it will look like "global.hps".
Open it with Notepad.
Copy-paste the following code to your global.hps
void OnGameStart()
{
AddCombineCallback("HandDrill", "Nameofthefirstitem", "Nameoftheseconditem", "CombineHandDrill", true);
}

void CombineHandDrill(string &in asItemA, string &in asItemB)
{
PlayGuiSound("12_make_drill", 1.0f);
RemoveItem(asItemA); RemoveItem(asItemB);
GiveItem("HandDrill", "Puzzle", "hand_drill", "hand_drill.tga", 0);
}
Change
"Nameofthefirstitem" to the First Item you wanna combine.
AND
"Nameoftheseconditem" to the Second Item you wanna combine.
The names must be the same as their name in the Level Editor. And always use quotation marks ("") around names.

how about 3 parts like from the storage in ATDD?
04-05-2013, 10:55 AM
Find


Messages In This Thread
Combine drill in a script! - by TimeSpectre - 04-05-2013, 09:27 AM
RE: Combine drill in a script! - by TimeSpectre - 04-05-2013, 10:55 AM
RE: Combine drill in a script! - by Yare - 04-05-2013, 12:16 PM



Users browsing this thread: 1 Guest(s)