The parameters are now actually used.
parent
309d71d72d
commit
d44b2043bc
|
@ -68,7 +68,7 @@
|
||||||
<table class="function_list">
|
<table class="function_list">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#spawnusher.activate">spawnusher.activate</a> (require_air_bubble_size, retry_time)</td>
|
<td class="name" nowrap><a href="#spawnusher.activate">spawnusher.activate</a> (required_air_bubble_size, retry_time)</td>
|
||||||
<td class="summary">Activates the spawn usher system.</td>
|
<td class="summary">Activates the spawn usher system.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<dt><a name="spawnusher.activate"></a><strong>spawnusher.activate</strong> (require_air_bubble_size, retry_time)</dt>
|
<dt><a name="spawnusher.activate"></a><strong>spawnusher.activate</strong> (required_air_bubble_size, retry_time)</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Activates the spawn usher system.
|
Activates the spawn usher system.
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ Activates the spawn usher system.
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
require_air_bubble_size: Optional. The size/height of the bubble of air that is required for the player to spawn. Defaults to 2.
|
required_air_bubble_size: Optional. The size/height of the bubble of air that is required for the player to spawn. Defaults to 2.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -45,12 +45,15 @@ spawnusher = {
|
||||||
|
|
||||||
--- Activates the spawn usher system.
|
--- Activates the spawn usher system.
|
||||||
--
|
--
|
||||||
-- @param require_air_bubble_size Optional. The size/height of the bubble of air
|
-- @param required_air_bubble_size Optional. The size/height of the bubble of air
|
||||||
-- that is required for the player to spawn.
|
-- that is required for the player to spawn.
|
||||||
-- Defaults to 2.
|
-- Defaults to 2.
|
||||||
-- @param retry_time Optional. This is the time that passes between tries to
|
-- @param retry_time Optional. This is the time that passes between tries to
|
||||||
-- place to the player.
|
-- place to the player.
|
||||||
function spawnusher.activate(require_air_bubble_size, retry_time)
|
function spawnusher.activate(required_air_bubble_size, retry_time)
|
||||||
|
spawnusher.required_bubble_size = required_bubble_size or 2
|
||||||
|
spawnusher.retry_time = retry_time or 0.5
|
||||||
|
|
||||||
minetest.register_on_newplayer(spawnusher.move_player)
|
minetest.register_on_newplayer(spawnusher.move_player)
|
||||||
minetest.register_on_respawnplayer(spawnusher.move_player)
|
minetest.register_on_respawnplayer(spawnusher.move_player)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue