Frictional Games Forum (read-only)

Full Version: write to file script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
Is it possible to write(read) to(from) a file in script? I want to save some information about game during playing.
Thanks.
AddDeBuggMessage?
Print is the closest you'll get.
I ment create a file a print into this file during playing. For example: find 1 of 5 secret area in all game, print to file mark.
Well I think you can use GlobalVariables to read how many secrets or so the player have found and then write different credits for each amount of variable
And how to count if it isn't in same level?
A GlobalVariable goes through out the whole CS but a LocalVariable is only for the map you use it on Smile
Thanks. It's like java. Sooo simple Big Grin.