Priority: Low
WorkQueue is very useful. But it is accessible only by world.lua.
Since there is no direct way for a script to communicate with another, I have to take a workaround:
1. Spawn an object
2. Give/set a property ".to_be_build" = true of that object.
3. In Update() at world.lua, anchor.GetNearbyObjects(thatType, 9999)
4. For each ojects which has to_be_build, use WorkQueue to build a copy and delete the old one.
Ugly. And costly in performance if there are many types to check frequently.
- Board index Games Prison Architect Prison Architect Modding
- Search
-
- It is currently Wed Apr 24, 2024 12:24 pm
- All times are UTC+01:00
[API Request] WorkQueue in Object
Discussion about Mods for Prison Architect
Moderator: NBJeff
Jump to
- Introversion
- Introversion News
- Introversion Lounge
- Introversion Blog
- Games
- Scanner Sombre
- Prison Architect
- Prison Architect
- General
- Community Members
- Campaign
- Escape Mode
- Modding
- Tablet Testing
- Introversion
- Subversion
- Multiwinia
- Multiwinia
- General
- Gameplay Discussion
- Strategy and Tactics
- Mods and Maps
- The Future
- Introversion
- Support
- Windows Troubleshooting
- Defcon
- Defcon
- General
- Strategic Air Command
- The Debriefing Room
- Mod Projects
- Think Tank
- AI Bots
- DEFCON VR
- Introversion
- Support
- Windows Troubleshooting
- Linux Troubleshooting
- Darwinia
- Darwinia
- General
- Mod Projects
- Introversion
- Technical Support
- Windows Issues
- Mac Issues
- Linux Issues
- Translation Issues
- Uplink
- Uplink
- General
- Latest Patch
- Hints and Tips
- The Full Game
- The Future
- Uplink in Moderation
- Introversion
- Nakatomi
- Bug Reports
- The Bonus Disk
- The Latest Patch
- Mac Uplink
Who is online
Users browsing this forum: No registered users and 14 guests