General Barron/Sandbox – User
No edit summary |
(displayText added) |
||
Line 33: | Line 33: | ||
<hr><hr> | |||
Info for "displayText" command (1.18 hf6), I sent it in an email but it should go on wiki: | Info for "displayText" command (1.18 hf6), I sent it in an email but it should go on wiki: | ||
Line 62: | Line 63: | ||
In this example, the text over the player's head will change from "myvar = | In this example, the text over the player's head will change from "myvar = | ||
1" to "myvar = 2" automatically. | 1" to "myvar = 2" automatically. | ||
:Thanks! I've added the [[displayText (VBS2)|page]]. --[[User:Kronzky|Kronzky]] 03:20, 31 January 2008 (CET) |
Revision as of 03:20, 31 January 2008
This is your 'Sandbox'.
It is your personal place to experiment with wiki code, keep notes, and to store unfinished articles you are working on.
Feel free to change, replace, or delete whatever is in here.
Please keep in mind to follow the rules you can find in the Guidelines, especially to sign your comments with --~~~~, and to write in English only.
Below are some basic commands that you should know before posting on the wiki.
The table of content you see at the just below this is automatically created from the section headers (lines surrounded by equal signs).
Formatting
- bold
- italic
- Indentation (one position per colon)
- italic
Links
Internal Links (pages on this wiki)
Operation Flashpoint: Easter Eggs (use full title for normal pages)
Easter Eggs (to name a link use [URL | name])
Category:Armed Assault (put colon in first column for category pages)
External Links (to other sites)
http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page
More wikitext examples (to name a link use [URL space name])
Info for "displayText" command (1.18 hf6), I sent it in an email but it should go on wiki:
The syntax for the command is as follows:
<obj> DisplayText ["Text", [x/y/z relative position to object], <3d_True/False>, [rgba color], size (number)]
All parameters are optional after "text".
Note that 2d text is visible no matter how far away you are from the object, even if you do not have LOS.
Example: player DisplayText ["text", [0,0,5], true, [1,0,0,1], 1.5]
Use displaytext [""] to remove any text.
You can also use the syntax #variable in the text, in order to display the contents of object variables of the attached object. The text will be changed dynamically. Example:
player setVariable ["myvar",1] player displayText ["myvar = #myvar"] sleep 10 player setVariable ["myvar",2]
In this example, the text over the player's head will change from "myvar = 1" to "myvar = 2" automatically.