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 Make an item appear after smashing plates?
Dominic0904 Offline
Member

Posts: 63
Threads: 14
Joined: Apr 2011
Reputation: 0
#1
Make an item appear after smashing plates?

Hey everybody,

Now usually I am ok with trying to figure out scripting for myself when it comes to Amnesia. But I am struggling to figure out how to do this particular task.

Now here's what I would want to happen. The player enters a room which is full of smashed plates besides a few. A note is left on a table with a riddle and the riddle basically says to smash all the plates to complete the puzzle. After the player smashes the remaining plates a key appears on the table.

Where I am unsure is how could I make sure the key appears after all the plates have been smashed?

I know the plates need to have a unique name such as "SmashPlate_01" and that a if statement would be needed to check the health of the plates and if it sees that all the plates have a health of 0 then it would make the key appear. But I am unsure on how to write that.

I believe the function "GetPropHealth" would have something to do with the matter but the rest I am unsure about.

If I could get some help regarding this it would be very much appreciated and help me learn more about scripting.

Thank you.
04-18-2013, 04:52 PM
Find


Messages In This Thread
Make an item appear after smashing plates? - by Dominic0904 - 04-18-2013, 04:52 PM



Users browsing this thread: 1 Guest(s)