wiki.sine.space | sinespace

Difference between revisions of "Health and ammo givers"

From wiki.sine.space
Jump to: navigation, search
(Created page with "The template examples of the Health Givers are configured as spawnable inventory items that players can place in their maps, adding to the unique challenges they can set for t...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<div class="content-nav">
 +
<h4>FPS Components</h4>
 +
<ul>
 +
<li>[[Shooter_games_FPS|Shooter games FPS]]</li>
 +
<li>[[The_safe_zone_lobby|The safe zone lobby]]</li>
 +
<li>[[Guns_and_gun_givers|Guns and gun givers]]</li>
 +
<li>[[Player_spawn_points|Player spawn points]]</li>
 +
<li>[[Traps|Traps]]</li>
 +
<li>[[King_of_the_hill_zone|King of the hill zone]]</li>
 +
<li>[[Enemy_NPCs_and_NPC_spawners|Enemy NPCs and NPC spawners]]</li>
 +
</ul>
 +
</div>
 +
 
The template examples of the Health Givers are configured as spawnable inventory items that players can place in their maps, adding to the unique challenges they can set for themselves and their friends when they play together.  
 
The template examples of the Health Givers are configured as spawnable inventory items that players can place in their maps, adding to the unique challenges they can set for themselves and their friends when they play together.  
  
Line 6: Line 19:
  
  
PENDING
+
{{#ev:youtube|h-q-id5eaew}}
  
  

Latest revision as of 10:18, 11 March 2019

The template examples of the Health Givers are configured as spawnable inventory items that players can place in their maps, adding to the unique challenges they can set for themselves and their friends when they play together.

The public variables on the Health Giver and Ammo Giver allow players to define the amount of health or ammo given, bullet type, and the cool down rate on individual items spawned in the map.

This video tutorial shows how to configure and publish your own Health and Ammo Givers as inventory items that players can in place in their own customised multi-player maps in Sinespace;



Public variables

  • Health
  • Interval

Health is the amount of health you get each time. Interval is the cool down rate before you can use it again.


HealthVariables.png


There are no resources, events or objects.

The default art template has a trigger activator triggering the addhealth function when the player passes through the collider. It is set up as a placeable item in the map but you could configure the same component to drop as a one time vial that destroys itself when the player collects.

Ammo givers

Ammo Givers let players collect ammo. Gun Givers also act as Ammo Givers. Individual Ammo Givers are tied to specific bullet types.

Public variables

The Ammo Givers have three public variables which players can configure when placing the items in their maps.

  • bulletType
  • bullets
  • bulletInterval

bulletType corresponds with the type defined in the Gun Giver.

bullets defines the number of bullets the player gets each time they use the Ammo Giver.

bulletInterval defines the cool down rate on the item.

The trigger activator triggers the script to call the bulletCrateTryGive function. This is triggered by walking through the collider which must be set to “Is trigger.”


AmmoGivVariables.png