# Game

```lua
-- Convert a 3D world coordinate to a 2D screen coordinate.
-- Parameters:
--    vector: pointer to an array of 3 floats,
--    representing the world coordinate.
-- Returns:
--     True if the conversion was successful and
--     the resulting screen coordinate is within the screen bounds,
--     false otherwise.
Game.WorldToScreen(vector)
```

```lua
-- Returns an last converted vector from function "WorldToScreen"
Game.GetLastConvertedToScreenVector()
```

```lua
-- Controls the current packet.
-- Parameters:
--     status: boolean true/false.
Game.SendPacket(status)
```

<pre class="language-lua"><code class="lang-lua">-- Creates a sound stream from a file specified by filename.
-- The resulting stream handle can be used to play the sound using BASS library.
-- Parameters:
<strong>--     path: the name of the sound file to load.
</strong>-- Returns:
--     The handle to the sound stream on success, or 0 on failure.
Game.LoadSound(path)
</code></pre>

```lua
-- Plays a sound stream with a specified volume.
-- Parameters:
--     sound: the handle to the sound stream to play.
--     volume: the volume of the sound to play, in range 0-100.
Game.PlaySound(sound, volume)
```

```lua
-- Returns the current time in milliseconds since the game started.
-- Returns:
--     The current system time in milliseconds.
Game.GetTime()
```
