Unsolved How do I spawn a vehicle in the sky above the player with Lua?

Discussion in 'Mod Support' started by Jack The Fox, Apr 12, 2025.

  1. Jack The Fox

    Jack The Fox
    Expand Collapse

    Joined:
    Jan 22, 2025
    Messages:
    21
    Hey everyone!

    I'm working on a simple mod and I want to create a Lua script that spawns a vehicle high up in the air above the player so it falls down. Kind of like a "falling car" effect.

    I've got the basics down, but I want to make sure I'm doing it the right way. How do I get the player vehicle’s position, then use that to spawn another vehicle above it?

    Any tips or examples would be really appreciated!

    Thanks in advance!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice