Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

How to cast int to string?

Discussion in 'Visual Scripting' started by DoYouVHS, Mar 17, 2019.

  1. DoYouVHS Trainee Engineer

    Messages:
    3
    Hello, I'm working on a small mod that will allow the game to randomly pick and load a stage, then to load and run something like deathmatch or a FPS. I wanted to use a notification to show the time remaining at some points, but for some reason the blocks won't automatically convert an int to a string for an input when needed, even if I try to add a string to it. Is there any way to use my ints as strings? Thanks for any support!

    DoYouSellVHS
     
  2. 666Savior Apprentice Engineer

    Messages:
    195
    In the function list expand the 'VRage.Game.VisualScripting' list then expand the 'String' list. There should be 'IntToString' in that list, along with a few others
     
  3. DoYouVHS Trainee Engineer

    Messages:
    3
    ? I don't see the "string" list in the functions groups.


    EDIT: Whoops, was using an outdated version! sorry!
     
    Last edited: Mar 17, 2019