Reputation Activity
-
BlockBa5her got a reaction from LtFlash in How do you code conversations with suspects/victims?I do something kind of different for conversations, I don't use a dictionary, I use a loop. It looks something like this
string[] talkArray = { "Aggressor: I shot him!", "Victim: He shot me!" } for (i = 0; i < talkArray.Length; i++) { while (!Game.IsKeyDown(Keys.Y)) GameFiber.Yield(); Game.DisplaySubtitle(talkArray[i]); GameFiber.Sleep(1000); //You don't need the sleep I just like to have it in my code so the person reads the entire text } That really should give you the same effect but you could choose either way.
-
BlockBa5her got a reaction fromDeactivated Memberin How do you code conversations with suspects/victims?I do something kind of different for conversations, I don't use a dictionary, I use a loop. It looks something like this
string[] talkArray = { "Aggressor: I shot him!", "Victim: He shot me!" } for (i = 0; i < talkArray.Length; i++) { while (!Game.IsKeyDown(Keys.Y)) GameFiber.Yield(); Game.DisplaySubtitle(talkArray[i]); GameFiber.Sleep(1000); //You don't need the sleep I just like to have it in my code so the person reads the entire text } That really should give you the same effect but you could choose either way.
-
BlockBa5her got a reaction from ToastinYou in How do you code conversations with suspects/victims?I do something kind of different for conversations, I don't use a dictionary, I use a loop. It looks something like this
string[] talkArray = { "Aggressor: I shot him!", "Victim: He shot me!" } for (i = 0; i < talkArray.Length; i++) { while (!Game.IsKeyDown(Keys.Y)) GameFiber.Yield(); Game.DisplaySubtitle(talkArray[i]); GameFiber.Sleep(1000); //You don't need the sleep I just like to have it in my code so the person reads the entire text } That really should give you the same effect but you could choose either way.
-
BlockBa5her got a reaction from ToastinYou in How do you add attachments to a weaponYeah, it worked. Thanks for the lists! Will keep them in my bookmarks
-
BlockBa5her reacted toSuperNish35in (RPH C#) How to add INI to codeTry this https://github.com/LMSDev/LSPDFR-API/blob/master/Utilities/IniFileDemo/EntryPoint.cs
btw here is an entire folder to help you https://github.com/LMSDev/LSPDFR-API/tree/master/Utilities