Chronogyros
Junior Member
Posts: 43
Threads: 9
Joined: Oct 2011
Reputation:
2
|
Trouble With Guiding Rods
Having a bit of trouble using guiding rods and the guiding rod machine (in original Amnesia, the part where you have to start the elevator by plugging in the 3 rods). Well I want to do something similar, however, whenever I go to use a rod on the machine, it just says "no object to use item on." This is odd, because the machine is definitely an entity, and it should be a valid object to use an item on, right?
Not sure if it's a scripting issue, or level editor issue.
In case it is my script, here are the functions I'm using:
AddUseItemCallback("guiding_rod01_1", "guiding_rod01_1", "guiding_rod_machine_1", "rod1", true);
Then:
void rod1(string &in asItem, string &in asEntity)
{
PlaySoundAtEntity("", "13_rod_in.snt", "Player", 0, false);
SetEntityActive("guiding_rod_2", true);
RemoveItem("guiding_rod01_1");
}
Any ideas what might be wrong?
Emma's Story Part II 100% Complete
|
|
11-13-2011, 01:57 AM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
RE: Trouble With Guiding Rods
Did you name everything exactly as it is in here?
|
|
11-13-2011, 02:25 AM |
|
Chronogyros
Junior Member
Posts: 43
Threads: 9
Joined: Oct 2011
Reputation:
2
|
RE: Trouble With Guiding Rods
Yup, just double checked everything. Although I'm starting to suspect it isn't a scripting problem, however, more of a game problem. The game simply doesn't recognize the Machine as a usable object. That's my theory anyway.
Emma's Story Part II 100% Complete
|
|
11-13-2011, 02:38 AM |
|
Apjjm
Is easy to say
Posts: 496
Threads: 18
Joined: Apr 2011
Reputation:
52
|
RE: Trouble With Guiding Rods
The machine room level used script areas to interact with the rods if i recall correctly, that way it could also detect what holes the rods were placed within.
|
|
11-13-2011, 03:15 AM |
|
Chronogyros
Junior Member
Posts: 43
Threads: 9
Joined: Oct 2011
Reputation:
2
|
RE: Trouble With Guiding Rods
Quote: The machine room level used script areas to interact with the rods if i recall correctly, that way it could also detect what holes the rods were placed within.
Yes it seems you are right. Thanks for the tip.
Emma's Story Part II 100% Complete
|
|
11-13-2011, 05:58 PM |
|