Search results for query: *

  1. D

    Resolved Assigning String Variables Incrementally

    Ok. So using a list solved the problem. Thanks. public static List <Ped> Companion = new List<Ped>(); Companion.Add(CurrentPed);
  2. D

    Resolved Assigning String Variables Incrementally

    Hi and thanks. Yes, that's my understanding. Figuring it out will be another story. Going to look for some tutorials.
  3. D

    Resolved Assigning String Variables Incrementally

    Update. Got this to work: if (Companion1 == null) { Companion1 = CurrentPed; CurrentPed = null; } if (Companion2 == null) { Companion2 = CurrentPed; CurrentPed = null; } Apparently it would be better to use a list. In GTA5 scripting this would be list<ped> where ped is the type for characters...
  4. D

    Resolved Assigning String Variables Incrementally

    Hi All. Second post here, disclaimer not a programmer. Sorry if topic title is confusing, I'll clarify what I'm trying to do which involves hooking into the GTA5 game engine. I spawn characters in the game and given them a variable name. For example I would call the first character, Companion1...
  5. D

    Resolved How to toggle between two states

    Thanks but I solved it. The problem with an issue like this one was that it would freeze the game at run time, and its a long load - so trial and error was really not an efficient way to go. You know it's really challenging to do what I'm doing because it involves both C# and a very poorly...
  6. D

    Resolved How to toggle between two states

    I'm a non-programmer and absolute beginner using C#. I'm using C#.NET with VS 2019 to modify the video game GTA5 for scholastic purposes (albeit without the violence and swearing). I'm progressing well but would like some help with a new challenge. I have successfully written code below, that...
Back
Top Bottom