Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Enters Story Zone
-- Play Video without the ability to skip the video

g_storyinzone_mode = {}

function storyinzone_noskip_init(e)
g_storyinzone_mode[e] = 0
end

function storyinzone_noskip_main(e)
if g_Entity[e]['plrinzone']==1 then
if g_storyinzone_mode[e] ~= nil then
if g_storyinzone_mode[e] == 0 then
g_storyinzone_mode[e] = 1
HideHuds()
if radar_hideallsprites ~= nil then radar_hideallsprites() end
else
if g_storyinzone_mode[e] == 1 then
PlaySound(e,0)
PlayVideoNoSkip(e,1)
StopSound(e,0)
g_storyinzone_mode[e] = 2
else
if g_storyinzone_mode[e] == 2 then
if radar_showallsprites ~= nil then radar_showallsprites() end
ShowHuds()
Destroy(e)
ActivateIfUsed(e)
g_storyinzone_mode[e] = 3
end
end
end
end
end
end