Can`t get teleported items to work properly...
- WaspUK1966
- Posts: 135
- Joined: Sat Aug 09, 2014 9:17 am
Can`t get teleported items to work properly...
In my game, I have a pressure plate placed behind a closed portcullis. The plate opens the door when triggered by an item. The player has to throw an item (doesn't matter which) into a teleporter, which then teleports the item to the location of the pressure plate. I set up the plate and teleporter to be triggered by an item, and linked them together, but its not working. I keep getting messages saying "orientation of the flying object hasn't been changed" . Also, the item either appears to the right of the plate (so not actually on it so doesn't trigger it), or simply just teleports into somewhere unknown. I`ve tried changing the facing direction of both the plate and the teleporter, but no joy. Still doesn't work. Any help, guys?
- Dr.Disaster
- Posts: 2876
- Joined: Wed Aug 15, 2012 11:48 am
Re: Can`t get teleported items to work properly...
The message is not correct; ignore it.
The point here is that a flying object entering a teleporter keeps it's momentum:
- flying object enters teleporter
- flying object gets teleported to the assigned destination
- facing of the flying object is changed if the feature is set
- flying object continues it's path with the given momentum
Now if you do not throw but simply put an item into the teleported it will end up right on the pressure plate.
I don't know your setup but here are two solutions, both rather simple:
1) if there is a wall at an edge of your pressure plate set the "Change Facing" of the teleporter to that wall
2) if there are no walls beside the pressure plate place another invisible teleporter into the traveling path of the object, sending it back to the pressure plate (it might look funny but works)
The point here is that a flying object entering a teleporter keeps it's momentum:
- flying object enters teleporter
- flying object gets teleported to the assigned destination
- facing of the flying object is changed if the feature is set
- flying object continues it's path with the given momentum
Now if you do not throw but simply put an item into the teleported it will end up right on the pressure plate.
I don't know your setup but here are two solutions, both rather simple:
1) if there is a wall at an edge of your pressure plate set the "Change Facing" of the teleporter to that wall
2) if there are no walls beside the pressure plate place another invisible teleporter into the traveling path of the object, sending it back to the pressure plate (it might look funny but works)
Re: Can`t get teleported items to work properly...
This is because the item keeps its [virtual] inertia when traveling through the teleporter. The console message is telling you that the item will not be rotated the ~the way party members can be.
You should ensure that there is something to block the thrown item, like a wall where the item will hit it, then fall to the ground; otherwise if the item still has several cells to fly, it will keep flying right out of the teleporter ~and off down the hall.
Great tips!
I assume that a teleporter being an obstacle is to prevent infinite looped teleporting.
You should ensure that there is something to block the thrown item, like a wall where the item will hit it, then fall to the ground; otherwise if the item still has several cells to fly, it will keep flying right out of the teleporter ~and off down the hall.
Dr.Disaster wrote:1) if there is a wall at an edge of your pressure plate set the "Change Facing" of the teleporter to that wall
2) if there are no walls beside the pressure plate place another invisible teleporter into the traveling path of the object, sending it back to the pressure plate (it might look funny but works)
I assume that a teleporter being an obstacle is to prevent infinite looped teleporting.
Re: Can`t get teleported items to work properly...
The message is correct, it just doesn't refer to what you think it does. The item's direction of travel is changed, and the item's facing is changed, but its model's orientation is not. If you look at a flying throwing knife after a teleporter changes its direction, it will appear to be flying sideways or backwards.Dr.Disaster wrote:The message is not correct; ignore it.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
- Dr.Disaster
- Posts: 2876
- Joined: Wed Aug 15, 2012 11:48 am
Re: Can`t get teleported items to work properly...
Ah it's about the model rotation!minmay wrote:The message is correct, it just doesn't refer to what you think it does. The item's direction of travel is changed, and the item's facing is changed, but its model's orientation is not. If you look at a flying throwing knife after a teleporter changes its direction, it will appear to be flying sideways or backwards.Dr.Disaster wrote:The message is not correct; ignore it.
I did a quick test with a rock and only checked the flight path (which changes) but not the rock's appearance
This can actually make an interesting puzzle.
Make the teleporter unreachable i.e. with 1+ pits so the party can't place an item into it. She then has to pot-shot the teleporter with a thrown/shot item then to get something onto the pressure plate and not over-shot .. err .. over-teleport it
Last edited by Dr.Disaster on Thu Sep 11, 2014 2:00 am, edited 1 time in total.
Re: Can`t get teleported items to work properly...
* A bull's-eye on the other side of the teleporters, that only accepts projectiles point first.Dr.Disaster wrote:This can actually make an interesting puzzle.
Make the teleporter unreachable i.e. with 1+ pits so the party can't place an item into it.
She has to pot-shot the teleporter with a thown/shot item then to get something onto the pressure plate.
- WaspUK1966
- Posts: 135
- Joined: Sat Aug 09, 2014 9:17 am
Re: Can`t get teleported items to work properly...
Thanks' for that, guys. Problem sorted. Just selected "change facing" in teleporter, now the item lands on the pressure plate every time (its next to a door anyway so that stops the flight). As mentioned in one of the replies above, I`ve already got it as part of a puzzle. The player cant access the teleporter directly due to a hidden teleporter infront of it that keeps sending the player back a couple of squares. So the only way the door can be opened is by throwing something into the visible teleporter so that it lands on the pressure plate. Works very well (just like the puzzles in the old D&D games). Once again, thanks for all the help. I`ll try not to bother you too much in the future!
Kind Regards
George
Kind Regards
George