Spajk Posted November 28, 2013 Posted November 28, 2013 Recently I started making a supply drop script. ( A plane flying over the map and dropping a crate) Now, I saw many workarounds, but all of them require a player to be near the location of the crete once its dropped, but in my case, there might not be anyone near it. Is there any solution for this?
Woovie Posted November 29, 2013 Posted November 29, 2013 You could use isElementStreamedIn to see if anyone is near it. Wait to do the 'drop' animation until some client responds with true.
myonlake Posted November 29, 2013 Posted November 29, 2013 Wonder why do you need a client nearby to do this? You don't need anything else than createObject to make this work. Just need to have an object that responds to gravity, such as a generic box from some street. It will do everything server-side and it will work even if no one is online. When the object has reached the ground you can make it spawn there again and so it's synchronized with all players that connect after this has happened.
Spajk Posted November 29, 2013 Author Posted November 29, 2013 @Woovie It would use too much resources to check every second for every client @myonlake The object wont be affected by gravity untill a player hits it and once its out of stream, it will simply freeze.
myonlake Posted November 29, 2013 Posted November 29, 2013 Will it ever be out of stream? Wondering if there's any need of making such script if it's never used when players are nearby.
Spajk Posted November 29, 2013 Author Posted November 29, 2013 Never mind, I will be using a diffrent system, topic can be locked. Thanks myonlake and Woovie
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