Chalwk

Vehicle Spawner

A custom vehicle spawner that works on any game mode.

 

This 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.

 

Made in response to this post.

 

~edit:

Updated with a bug fix (vehicle respawn timer wasn't being reset when someone enters it).

 

 

Vehicle Spawner.lua

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

- I invite you to join my Halo Discord Server.

- Add me on discord: Chalwk#9284

- 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 Wiki (new)

Share this post


Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.