The Driver Syndicate/Scripting/Mission Scripting/Minigames/Survival: Difference between revisions
Jump to navigation
Jump to search
SwissCruiser (talk | contribs) (Created page with " ==See Also== The Driver Syndicate/Addon System The Driver Syndicate/Scripting/Mission Scripting") |
SwissCruiser (talk | contribs) |
||
Line 1: | Line 1: | ||
== Creating Survival Minigame == | |||
ToDo:<syntaxhighlight lang="lua"> | |||
--////////////////////////////////////////////////////////////////////////////////// | |||
--// Copyright � Inspiration Byte | |||
--// 2009-2015 | |||
--////////////////////////////////////////////////////////////////////////////////// | |||
-------------------------------------------------------------------------------- | |||
-- Cop test script | |||
-------------------------------------------------------------------------------- | |||
world:SetLevelName("default") | |||
world:SetEnvironmentName("dusk_overcast") | |||
---------------------------------------------------------------------------------------------- | |||
-- Mission initialization | |||
---------------------------------------------------------------------------------------------- | |||
MISSION.MusicScript = "rio_day" --set music here | |||
MISSION.Init = function() | |||
-- car name maxdamage pos ang | |||
local playerCar = gameses:CreateCar("mustang_f", CAR_TYPE_NORMAL) --set car here | |||
playerCar:SetOrigin( Vector3D.new(41.44, 0.48, 107.64) ) --set starting coordinates here | |||
playerCar:SetAngles( Vector3D.new(0, -90, 0) ) --set starting direction here | |||
playerCar:SetColorScheme(3) | |||
playerCar:Spawn() | |||
gameses:SetPlayerCar( playerCar ) | |||
SurvivalGame.Init( 8 ) | |||
end | |||
-------------------------------------------------------------------------------- | |||
</syntaxhighlight> | |||
== How to add it to the Game/Mod == | |||
ToDo: | |||
==See Also== | ==See Also== |
Latest revision as of 13:53, 25 January 2025
Creating Survival Minigame
ToDo:
--//////////////////////////////////////////////////////////////////////////////////
--// Copyright � Inspiration Byte
--// 2009-2015
--//////////////////////////////////////////////////////////////////////////////////
--------------------------------------------------------------------------------
-- Cop test script
--------------------------------------------------------------------------------
world:SetLevelName("default")
world:SetEnvironmentName("dusk_overcast")
----------------------------------------------------------------------------------------------
-- Mission initialization
----------------------------------------------------------------------------------------------
MISSION.MusicScript = "rio_day" --set music here
MISSION.Init = function()
-- car name maxdamage pos ang
local playerCar = gameses:CreateCar("mustang_f", CAR_TYPE_NORMAL) --set car here
playerCar:SetOrigin( Vector3D.new(41.44, 0.48, 107.64) ) --set starting coordinates here
playerCar:SetAngles( Vector3D.new(0, -90, 0) ) --set starting direction here
playerCar:SetColorScheme(3)
playerCar:Spawn()
gameses:SetPlayerCar( playerCar )
SurvivalGame.Init( 8 )
end
--------------------------------------------------------------------------------
How to add it to the Game/Mod
ToDo: