Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
writing to screen and a variable
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: writing to screen and a variable (Read 556 times)
0 Members and 1 Guest are viewing this topic.
charunks
Guest
writing to screen and a variable
«
on:
07 Dec 2003, 16:20:26 »
I have a small problem:
; just a small script
a=5
hint "a"
exit
ingame this writes a to the screen for a short period.
How do you write the value of a to the screen and how do you keep this value on screen ( it disappears after a short time)?
thnx
Logged
macguba
Former Staff
Re:writing to screen and a variable
«
Reply #1 on:
07 Dec 2003, 17:30:22 »
Use the
format
command. See the online version of the command ref for an example.
Hints disappear after a while. If you want it to stay repeat the hint.
Logged
Plenty of
reviewed ArmA missions
for you to play
Artak
The old beanbag shaker
Former Staff
You want to talk about it, yes?
Re:writing to screen and a variable
«
Reply #2 on:
07 Dec 2003, 17:35:05 »
Aye as macguba there said it, and pretty much everything, can be found in the command reference.
#loop
?conditiontoexit: exit
a=5
hint
format
["%1",a]
~10
goto "loop"
Logged
Not all is lost.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
writing to screen and a variable
Top of page