wiki.sine.space | sinespace

Health and ammo givers

From wiki.sine.space
Revision as of 05:54, 2 March 2019 by HannahT25 (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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;


PENDING


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