Prevent specific vehicles from spawning?
Moderator: NBJeff
Prevent specific vehicles from spawning?
Is it possible for mods to prevent specific vehicles from spawning, e.g. hearses upon deaths? I didn't see anything in the modding API that would support this.
Re: Prevent specific vehicles from spawning?
Give it Properties Scripted in materials.txt and then make /scripts/Hearse.lua in your mods folder with this little script:
Nothing more about it. Putting delete() in the update function makes them vanish after a game was loaded with a Hearse on the map as well as delete them almost immediately once freshly spawned.
Code: Select all
function Create()
end
function Update()
this.Delete()
end
Nothing more about it. Putting delete() in the update function makes them vanish after a game was loaded with a Hearse on the map as well as delete them almost immediately once freshly spawned.
Who is online
Users browsing this forum: No registered users and 14 guests