User Tools

Site Tools


string

This is an old revision of the document!


String


A string is a scripting data type consisting of a string of characters enclosed by double quotes on each end. Strings are typically used to represent a message, for example in the Display Message function, or when referencing an entity name or property name within a script. Placeholder expressions can be used within a string as a way to generate dynamic values at game runtime.

Example:

display_message("Hello world! This is a string.")

The above example shows a string passed to the Display Message function as an argument.

Example:

set_entity_property(entity["sign_01"], "message", "This is the message text for the sign.")

The above example demonstrates 3 different usages.

string.1496168573.txt.gz · Last modified: 2017/05/30 11:22 by justin