The Driver Syndicate/Scripting/Mission Scripting/Minigames/Getaway: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| SwissCruiser (talk | contribs) | SwissCruiser (talk | contribs)  | ||
| Line 43: | Line 43: | ||
| </syntaxhighlight> | </syntaxhighlight> | ||
| ==How to add it to the Game/Mod== | |||
| ToDo: | |||
| ==See Also== | ==See Also== | ||
| [[The Driver Syndicate/Addon System]] | [[The Driver Syndicate/Addon System]] | ||
| [[The Driver Syndicate/Scripting/Mission Scripting]] | [[The Driver Syndicate/Scripting/Mission Scripting]] | ||
Latest revision as of 13:54, 25 January 2025
Creating Getaway Minigame
ToDo:
--//////////////////////////////////////////////////////////////////////////////////
--// Copyright � Inspiration Byte
--// 2009-2015
--//////////////////////////////////////////////////////////////////////////////////
--------------------------------------------------------------------------------
-- Cop test script
--------------------------------------------------------------------------------
world:SetLevelName("default") -- set levelname here
world:SetEnvironmentName("dusk_night_transition") -- set weather and daytime here
----------------------------------------------------------------------------------------------
-- Mission initialization
----------------------------------------------------------------------------------------------
MISSION.MusicScript = "vegas_day" -- set music here
	
MISSION.Init = function()
		
	local GameProps = {
		CopCarName = "cop_regis", -- set cop car here
		CopPosition = Vector3D.new(194.96,0.31,124.11), --set cop starting point here
		CopAngles = Vector3D.new(0, 90, 0), --set cop starting direction here
		Timeout = 98
	}
		
	-- car name		maxdamage	pos ang
	local playerCar = gameses:CreateCar("challenger", CAR_TYPE_NORMAL) -- set player car here
	playerCar:SetOrigin( Vector3D.new(134.96,0.31,124.11) ) --set player starting point here
	playerCar:SetAngles( Vector3D.new(0,90,0) ) --set player starting point here
	playerCar:Spawn()
	playerCar:SetColorScheme(2)
	
	gameses:SetPlayerCar( playerCar )
	
	GetawayGame.Init(GameProps)
end
How to add it to the Game/Mod
ToDo: