[SOLVED] Fall into teleporter => floor_trigger not activated
- Zo Kath Ra
- Posts: 944
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
[SOLVED] Fall into teleporter => floor_trigger not activated
Let there be a test dungeon with a floor_trigger at:
elevation = 1
Let there also be a teleporter at:
elevation = 0
The teleporter's destination are the floor_trigger's coordinates.
When the party walks into the teleporter from elevation 0, the floor_trigger is activated.
But when the party falls into the teleporter from elevation 1, the floor_trigger isn't activated.
elevation = 1
Let there also be a teleporter at:
elevation = 0
The teleporter's destination are the floor_trigger's coordinates.
When the party walks into the teleporter from elevation 0, the floor_trigger is activated.
But when the party falls into the teleporter from elevation 1, the floor_trigger isn't activated.
Last edited by Zo Kath Ra on Thu May 28, 2015 3:09 pm, edited 1 time in total.
Re: Bug: Falling into teleporter doesn't activate floor_trig
This might be related to the old Grimrock 1 "bug" of not teleporting when falling into a teleporter, at least it sounds kind of similar. I suppose you could always script it to forcibly work if necessary.
Finished Dungeons - complete mods to play
Re: Bug: Falling into teleporter doesn't activate floor_trig
What about if the party falls in to the Teleporter from Elevation 2? I bet the trigger activates!
(i have not tested this yet)
(i have not tested this yet)
- Zo Kath Ra
- Posts: 944
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Bug: Falling into teleporter doesn't activate floor_trig
Nice ideaAzel wrote:What about if the party falls in to the Teleporter from Elevation 2? I bet the trigger activates!
(i have not tested this yet)
But that doesn't work, either
Re: Bug: Falling into teleporter doesn't activate floor_trig
Invisible platform under the the Trigger, which gets removed as the last step after the trigger fires. That'll teach the greedy Teleporter a lesson 
Re: Bug: Falling into teleporter doesn't activate floor_trig
hi
The trigger works fine, It is the teleporter what does not work.
The teleporter checks only horizontal axes/faces not vertical.
you have to script the teleportation yourself i think.
I think about a solution. That makes me curious
The trigger works fine, It is the teleporter what does not work.
The teleporter checks only horizontal axes/faces not vertical.
you have to script the teleportation yourself i think.
I think about a solution. That makes me curious
Re: Bug: Falling into teleporter doesn't activate floor_trig
so thats my example for an solution.
not perfect, but it works.
not perfect, but it works.
Code: Select all
defineObject{
name = "party",
baseObject = "party",
components = {
{
class = "Timer",
name = "falltimer",
timerInterval = 0,
triggerOnStart = true,
onActivate = function(self)
if party.party:isFalling() == true then
local ent
local tp
local tppos
for ent in party.map:entitiesAt(party.x, party.y) do
local checktp = ent:getComponent("teleporter")
if checktp ~= nil then
tppos = ent:getWorldPositionY()
tp = checktp
end
end
if tp ~= nil and tp:getTriggeredByParty() == true then
local x = tppos + 2
if party:getWorldPositionY() < x then
local l,x,y,z = tp:getTeleportTarget(l,x,y,z)
local x1, y1, f, l1 = party:getPosition()
party:setPosition(x, y, f, z, l)
spawn("teleportation_effect", l, x, y, f, z)
party.gravity:setFallingSpeed(0)
end
end
end
end
}
}
}- Zo Kath Ra
- Posts: 944
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Bug: Falling into teleporter doesn't activate floor_trig
Thank you, that works very well 
Re: Bug: Falling into teleporter doesn't activate floor_trig
when it works mark the topic with [SOLVED] please for other people with this problem.
like this for example: [SOLVED] Falling into teleporter doesn't work
like this for example: [SOLVED] Falling into teleporter doesn't work
- Zo Kath Ra
- Posts: 944
- Joined: Sat Apr 21, 2012 9:57 am
- Location: Germany
Re: Bug: Falling into teleporter doesn't activate floor_trig
Done. Had to change the topic title a little, because [SOLVED] didn't fit into it anymore.st1nger wrote:when it works mark the topic with [SOLVED] please for other people with this problem.
like this for example: [SOLVED] Falling into teleporter doesn't work
