Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

A method library for Overwatch Script To Workshop by Deltin to shorten code and make things easier.

Notifications You must be signed in to change notification settings

TrueCP6/ostw-method-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ostw-method-library

A method library for Overwatch Script To Workshop by Deltin to shorten code and generally make things easier. Post any suggestions, enhancements, or bugs in the issues tab.

Method List

  • SumOfArray(arrayToSum)
  • AverageOfArray(arrayToAverage)
  • TallnessOfHero(hero): Same as tallness of player, but instead gets the value for a hero.
  • NearestSolidSurface(point, accuracy): Imperfect way of getting position of nearest solid surface. Accuracy is amount of times looped.
  • GenerateForeachArray(length): Generates an array of a length where each value is equal to its index. Great for using for Filtered and Sorted arrays.

Struct List

  • Dictionary: Easy access and editing of Dictionaries with keys associated to values
  • Trigger: Activate and deactivate Triggers to sequentialize your rules.
  • SphericalBarrier: Create spherical barriers and keep players in and out of them in a number of ways.
  • CylindricalBarrier: Same as SphericalBarrier except it extends from Y -∞ to ∞.
  • CuboidBarrier: Create a barrier from 2 opposite points in the shape of a rectangular prism, cube, etc. Has the same functionality as a normal Barrier.

Downloads

Installation

Installation instructions can be found here for OSTW. Download the method library from the releases page and copy it to the same folder as your OSTW project file. At the top of your project file add import "library.ostw";.

Usage

Once installed you can use the methods like you would any other action. NOTE: No methods in this library can be used within the conditions tab. However you can work around this by using AbortIf(Not(condition)) at the beginning of the actions for each condition that uses a method (this has some limitations).

About

A method library for Overwatch Script To Workshop by Deltin to shorten code and make things easier.

Resources

Stars

Watchers

Forks

Packages

No packages published