The parameters are now actually used.
parent
309d71d72d
commit
d44b2043bc
|
@ -68,7 +68,7 @@
|
|||
<table class="function_list">
|
||||
|
||||
<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>
|
||||
</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>
|
||||
Activates the spawn usher system.
|
||||
|
||||
|
@ -119,7 +119,7 @@ Activates the spawn usher system.
|
|||
<ul>
|
||||
|
||||
<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>
|
||||
|
|
|
@ -45,12 +45,15 @@ spawnusher = {
|
|||
|
||||
--- Activates the spawn usher system.
|
||||
--
|
||||
-- @param require_air_bubble_size Optional. The size/height of the bubble of air
|
||||
-- that is required for the player to spawn.
|
||||
-- Defaults to 2.
|
||||
-- @param required_air_bubble_size Optional. The size/height of the bubble of air
|
||||
-- that is required for the player to spawn.
|
||||
-- Defaults to 2.
|
||||
-- @param retry_time Optional. This is the time that passes between tries to
|
||||
-- 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_respawnplayer(spawnusher.move_player)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue