# playcanvas-timeout

> Timeout function in "game time" for PlayCanvas

Latest version **1.0.1** (published 2017-09-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install playcanvas-timeout
pnpm add playcanvas-timeout
yarn add playcanvas-timeout
bun add playcanvas-timeout
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-09-10 |
| First published | 2017-09-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Talbot |
| Maintainers | whydoidoit |
| Keywords | PlayCanvas |

## Links

- npm: https://www.npmjs.com/package/playcanvas-timeout
- Repository: https://github.com/whydoidoit/timeout
- Homepage: https://github.com/whydoidoit/timeout#readme
- Issues: https://github.com/whydoidoit/timeout/issues
- npm.io page: https://npm.io/package/playcanvas-timeout

## Dependencies (1)

- [playcanvas-update-fn](https://npm.io/package/playcanvas-update-fn.md) ^1.0.0

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-09-10
- 1.0.0 — 2017-09-10

## README

### Introduction

A setTimeout equivalent that operates in PlayCanvas game time, that might be slowed or paused.

### Installation

```language-shell
npm install --save playcanvas-timeout
```

### Usage

```language-javascript
import timeout form 'playcanvas-timeout'

...

timeout(function() {
    //Called after 1 second of GAME TIME
    ...
}, 1000); 
 

```

### Requirements

Requires PlayCanvas Engine to be running on the page.  Uses ES6/Babel/PlayCanvas template.

---
_Source: https://npm.io/package/playcanvas-timeout · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
