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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.