This site has been archived and made available for preservation purposes. No edits can be made.
AxisToString
(Difference between revisions)
Return to current revision
-
Retrieves the string representation of an [wiki]Axis[/wiki].
[h="2"] Declaration [/h]
-
-
<code cpp>
VAULTSCRIPT std::string (*AxisToString)(vaultmp::Index);
-
+
[highlight=cpp]
VAULTSCRIPT vaultmp::String (*AxisToString)(vaultmp::Index);
-
native AxisToString(index, value{});
-
-
</code>
-
+
[/highlight]
-
[h="2"] Parameters [/h]
[b][wiki="Index"]vaultmp::Index[/wiki][/b] - the index of the [wiki]Axis[/wiki]
[b]value[/b] (PAWN only) - an array large enough to hold at least 64 characters
[h="2"] Return value [/h]
-
-
The C++ version returns a std::string containing the string representation of the axis. The PAWN version has no return value.
-
+
The C++ version returns a [wiki="String"]vaultmp::String[/wiki] containing the string representation of the axis. The PAWN version has no return value.
-
[h="2"] Usage example (C++) [/h]
-
-
<code cpp>
std::string value;
-
+
[highlight=cpp]
vaultmp::String value;
-
value = AxisToString(index);
-
-
</code>
-
+
[/highlight]
-
[h="2"] Usage example (PAWN) [/h]
-
-
<code c>
-
+
[highlight=c]
-
new value{64};
AxisToString(index, value);
-
-
</code>
-
+
[/highlight]
-
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Misc functions[/category]