MANUAL for GMnet ENGINE and GMnet CORE

htme_globalGet(name)

Description

Returns a variable from the global sync list. See htme_globalSet for information on what these variables are. Will return undefined if variables was not stored previously by any client or the server. Make sure the player is connected or a server is running!

More information: Bonus 2 - Global Sync (Sync a pool of variables editable by all)

Example

var value = htme_globalGet("name")

if (is_undefined(value) {
    //Nope, that wasn't set yet...
}

Arguments

Name type description
name string The name of the variable

Returns

The saved variable (real or string) or undefined


Back to index.


Creative Commons License

All pages in this manual are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Manuals / GMnet ENGINE Manual

GameMaker: Studio is owned by YoYoGames. GMnet is not affiliated with YoYoGames.
The GMnet logos use icons from Entypo (http://entypo.com/) and Open Iconic (https://useiconic.com/open/). They are licensed under CC BY-SA 4.0.