Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Random events

Featured Replies

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?

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.

  • Author
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!

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.