Chalwk

Vehicle Spawner

A custom vehicle spawner that works on any game mode.

This script will spawn vehicles at pre-defined coordinates.

If a vehicle has moved from its original position and isn't occupied, it will be moved back to its original position after a delay.

 

This script was designed to fix a problem with vehicles that are created using

spawn_object() or execute_command("spawn ... ") on race game types - they do not respawn at the origin x,y,z.

 

NOTE:
If you're using this on any RACE game type,
you must set the game type flag "VEHICLE RESPAWN TIME" to NEVER.

 

 

Custom Vehicle Spawner.lua

Edited by Chalwk
Enclusion, Adio, mouseboyx and 1 other like this

- I invite you to join my Halo Discord Server.

- Add me on discord: Chalwk#9284
- HSP Repo

- HSP Repo Wiki (new)

Share this post


Link to post
Share on other sites

Tiddy-bits:

Update: 

 

Vehicle spawns are now configured on a per-map, per game mode basis.

 

For example:

 

["bloodgulch"] = {

	["example_game_mode"] = { -- replace with your own game mode name
		-- Example vehicle: (right of blue base):
		{ "vehi", "vehicles\\warthog\\mp_warthog", 47.15, -79.28, 0.12, 0, 30, 1 },
		--
		-- repeat the structure to add more vehicle entries.
		--
	},

	--
	-- repeat the structure to add more game modes.
	--
},

 

Edited by Chalwk
Enclusion and Takka like this

- I invite you to join my Halo Discord Server.

- Add me on discord: Chalwk#9284
- HSP Repo

- HSP Repo Wiki (new)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.