Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Illuna-Minetest
teleport_potion
Commits
632d0685
Commit
632d0685
authored
Jan 17, 2016
by
TenPlus1
Browse files
changed from moveto to setpos for pad/potion teleport
parent
33deefce
Changes
1
Hide whitespace changes
Inline
Side-by-side
init.lua
View file @
632d0685
...
...
@@ -300,6 +300,7 @@ minetest.register_abm({
}
for
k
,
player
in
pairs
(
objs
)
do
if
player
:
get_player_name
()
then
-- play sound on portal end
...
...
@@ -310,7 +311,7 @@ minetest.register_abm({
})
-- move player/object
player
:
moveto
(
target_coords
,
false
)
player
:
setpos
(
target_coords
)
-- paricle effects on arrival
tp_effect
(
target_coords
)
...
...
@@ -373,6 +374,7 @@ potion_entity.on_step = function(self, dtime)
end
self
.
object
:
remove
()
return
end
...
...
@@ -411,4 +413,4 @@ function throw_potion(itemstack, player)
obj
:
setyaw
(
player
:
get_look_yaw
()
+
math.pi
)
obj
:
get_luaentity
().
player
=
player
end
\ No newline at end of file
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment