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
Rod Puzzle
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#14
RE: Rod Puzzle

(06-13-2012, 09:59 PM)BrooksyFC Wrote: Yeah I've moved them. Are these script areas or something else? Like sticky?
The script beecake provided you is the simplest way to deal with your problem and will not be exactly like the puzzle in the original game (it would take me a few pages to write out exactly what to put in the editor and what to write for scripting, so I will not). If you want it to be exactly like in game, you will have to view FG's map in the map maker while looking at their script for the corresponding level to make sure you fully see how it's done.

To make the rods go into the corresponding hole, in the Level Editor, simply place the rod into the machine like you want it to appear in game (ie angle it properly and put about 1/2 or 1/4 of it in the machine's hole). Next, in the "General"tab, make sure "Active" is not checked; then, go to the next tab "Entities" and make sure "static physics" is checked.

(This next part is speculation, if you don't have this problem, ignore it.) If you select the rod in your inventory and place it over the machine, does it light up? (if yes, skip, if no, read) To make sure you can interact with the machine with each rod, place a script area over the machine that is roughly the same size. Name this area however you'd like, just know that it is going to be the child (thing you're interacting with) in your useitemcallback. Make sure to go into the "Area" tab and towards the bottom, make sure "ItemInteraction" is checked. This should solve the interaction problem.


As for the scripting portion, make sure to remove the item from you inventory, and set the rod with the corresponding color to the one you removed active. Then, add the local variable. When you reach the desired amount of variables (3?), you can trigger your function. If you are unfamiliar with variables, check out this tutorial on the FrictionalGames Wiki, it should be helpful:

http://wiki.frictionalgames.com/hpl2/tut...lvariables


I hope this helped you out. It is sometimes difficult to communicate exactly what to put in the level editor through text, hopefully I made it understandable.

I rate it 3 memes.
06-14-2012, 12:05 AM
Find


Messages In This Thread
Rod Puzzle - by BrooksyFC - 06-12-2012, 03:14 PM
RE: Rod Puzzle - by FlawlessHappiness - 06-12-2012, 03:27 PM
RE: Rod Puzzle - by Putmalk - 06-13-2012, 11:18 PM
RE: Rod Puzzle - by BrooksyFC - 06-12-2012, 03:49 PM
RE: Rod Puzzle - by FlawlessHappiness - 06-12-2012, 04:09 PM
RE: Rod Puzzle - by BrooksyFC - 06-12-2012, 06:57 PM
RE: Rod Puzzle - by FlawlessHappiness - 06-12-2012, 07:17 PM
RE: Rod Puzzle - by Adny - 06-12-2012, 07:28 PM
RE: Rod Puzzle - by FlawlessHappiness - 06-12-2012, 07:55 PM
RE: Rod Puzzle - by BrooksyFC - 06-13-2012, 08:44 AM
RE: Rod Puzzle - by BrooksyFC - 06-13-2012, 08:47 PM
RE: Rod Puzzle - by FlawlessHappiness - 06-13-2012, 09:37 PM
RE: Rod Puzzle - by BrooksyFC - 06-13-2012, 09:59 PM
RE: Rod Puzzle - by Adny - 06-14-2012, 12:05 AM
RE: Rod Puzzle - by BrooksyFC - 06-16-2012, 11:56 AM
RE: Rod Puzzle - by FlawlessHappiness - 06-16-2012, 12:46 PM
RE: Rod Puzzle - by BrooksyFC - 06-16-2012, 01:42 PM
RE: Rod Puzzle - by BrooksyFC - 06-18-2012, 08:17 AM
RE: Rod Puzzle - by Dutton - 06-18-2012, 08:47 AM
RE: Rod Puzzle - by BrooksyFC - 06-18-2012, 09:54 AM
RE: Rod Puzzle - by Adny - 06-18-2012, 11:02 AM
RE: Rod Puzzle - by BrooksyFC - 06-18-2012, 11:58 AM
RE: Rod Puzzle - by Adny - 06-18-2012, 12:05 PM
RE: Rod Puzzle - by FlawlessHappiness - 06-18-2012, 03:58 PM
RE: Rod Puzzle - by BrooksyFC - 06-19-2012, 08:13 AM
RE: Rod Puzzle - by BrooksyFC - 06-19-2012, 11:20 PM
RE: Rod Puzzle - by Adny - 06-20-2012, 01:20 AM
RE: Rod Puzzle - by BrooksyFC - 06-20-2012, 08:27 AM
RE: Rod Puzzle - by BrooksyFC - 06-20-2012, 03:39 PM



Users browsing this thread: 1 Guest(s)