Home   Help Search Login Register  

Author Topic: writing to screen and a variable  (Read 555 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

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
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.
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
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"
Not all is lost.