Asilar Posted October 31, 2020 Share Posted October 31, 2020 Hi, With alibuyuktatli we managed to create a fake helicopter function. What it does When you call the function, it simulate an Helicopter by calling the sound, faking arrival/hovering/leaving with incremental/decremental sound volume, and using addSound command to call the zombies around. The Fake Helicopter function needs a (player) argument, so you can call the Helicopter right on top of chosen player ! What for ? For example, if you call this function in a OnCreate function in a recipe, the crafting of the recipe will call this fake Helicopter on the player who crafted the recipe (and not at a random player location). Here is a demo of the function in a video : https://drive.google.com/file/d/1dwrieE7Archble93cpB--_8zS1JC-JT6/view?usp=sharing In this video, the function is called with an OnCreate function added in the custom recipe. Can I use it in my own mod ? We share the code for the coders community, feel free to use ! But please leave the credits. How I use it ? All is explained in the .lua file with the credits in the first lines. If you have trouble using it, feel free to ask here or in PM. Who coded that ? All credits of the code to alibuyuktatli ! Other credits Some of the icons/spites you can see in the video are used with the courtesy of Hydrocraft Mod. fakeheli.lua trombonaught and Nebula 2 Link to comment Share on other sites More sharing options...
Dr_Cox1911 Posted January 24, 2021 Share Posted January 24, 2021 Thanks for making this, had it on my todo-list for ages. One thing that is needed for my upcoming mod though: can I target a simple gridsquare (even one that is currently not loaded because no player is around)? Link to comment Share on other sites More sharing options...
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