Jump to content

Random events


Vaskulis

Recommended Posts

Is there a framework for random events in LSPDFR (like in @Albo1125's Traffic Policer or @khorio's Rednecks! to name a few)?

I've found LSPD_First_Response.Mod.WorldEvents but it doesn't look like it's supposed to be used for creating custom events.

 

So if there is not, I assume I would have to do it myself by starting a new GameFiber in my Initialize() override and have it check conditions and start a custom random event every once in a while. Or do I have to consider anything else?

Link to comment
Share on other sites

You can use my library to achieve that, it could be documented better but you can figure things out from the code:

https://github.com/LtFlash/LtFlash.Common/tree/master/LtFlash.Common/ScriptManager

https://github.com/LtFlash/LtFlash.Common/wiki/BasicScript

 

I might add it is used as a base framework for the incoming LS Noire.

Link to comment
Share on other sites

14 hours ago, LtFlash said:

You can use my library to achieve that, it could be documented better but you can figure things out from the code:

https://github.com/LtFlash/LtFlash.Common/tree/master/LtFlash.Common/ScriptManager

https://github.com/LtFlash/LtFlash.Common/wiki/BasicScript

 

I might add it is used as a base framework for the incoming LS Noire.

 

Thank you! I'll have a look at it, but I wouldn't say I understand everything that's going on there.

 

When my exams are over and I've cleared my head of particle physics and thermodynamics, it'll probably be easier for me to learn new stuff about coding.

 

BTW as a big fan of LA Noire I'm really excited for LS Noire! From what I've seen on YT, you're doing a great job!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...