FlorinSzasz Posted August 24, 2023 Share Posted August 24, 2023 (edited) I want to create a company system, however i run into a problem. I create some pickups but the game doesnt create all the pickups only a part of them. Here is all the code -> local company = dbConnect("sqlite","company.db") for i=1,55 do createObject(4012,2880.809765625+(i*65.95),-1934.609375,0.20000001788139,0,0,180) -- some ground / platform createPickup(2885.14+(i*65.95),-1943.72803,1.11521,3,1239,100) -- only 18 are rendered/created from /55 end for K=1,54 do createObject(4012,2946.759765625+(K*65.95),-2033.0093994141,0.20000001788139,0,0,360) createPickup(2951.09+(K*65.95),-2022.72803,1.11521,3,1239,100) -- only 17 are rendered/created from / 54 end https://drive.google.com/file/d/19tmzV5Y8OIOElWP0LsWsS3HX5HSzQa73/view?usp=sharing Link for the video. Also the road on video is from the .map file :)) Also ignore debugscript from video the code is ok no errors. Edited August 24, 2023 by FlorinSzasz Link to comment
DiSaMe Posted August 26, 2023 Share Posted August 26, 2023 This may be an out-of-bounds limitation. Some things don't work correctly outside (-3000; 3000) coordinate range. It's also possible that it's due to the number of pickups, although the streamer is supposed to keep the element count within game limits so you would always see the closest ones. Either way, it just seems that the pickups are buggy. When I had problems with them, I had to resort to using rotating objects instead. 1 Link to comment
FlorinSzasz Posted August 26, 2023 Author Share Posted August 26, 2023 3 hours ago, DiSaMe said: This may be an out-of-bounds limitation. Some things don't work correctly outside (-3000; 3000) coordinate range. It's also possible that it's due to the number of pickups, although the streamer is supposed to keep the element count within game limits so you would always see the closest ones. Either way, it just seems that the pickups are buggy. When I had problems with them, I had to resort to using rotating objects instead. well markers work, pickups are not rendered however if i hit the pickup on a pickup event it returns my debug message so they are there at least. My total pickup number is around 32 without this script. Well i will try to use rotating objects then. Thx for advice! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now