noob-i-am@
Have you seen this script by SisterMatic on the Steam forums...
attach the script to any non static model entity to allow it to play music and play video..
-- my_video.lua
--
-- author :- SisterMatic
--
-- set distance to object before it triggers
local dist_to_obj = 200
function my_video_init(e)
end
function my_video_main(e)
PlayerDist = GetPlayerDistance(e)
if PlayerDist <= dist_to_obj then
GetEntityPlayerVisibility(e)
-- did user just enter the area?
if g_Entity[e]['activated'] == 0 then
PlaySound(e,0)
PlayVideo(e,1)
SetActivated(e,1)
ActivateIfUsed(e)
end
end
-- is object activated and user moves away?
if PlayerDist > dist_to_obj then
if g_Entity[e]['activated'] == 1 then
SetActivated(e,0)
end
end
end -- function
add this to the FPE file of the model..
;Sound
soundset = audiobank\stories\the warehouse\track1.wav
soundset1 = videobank\storyvidWMV.wmv
to set the name for the music and the name for the video..
NB> sound/music must be 0 slot
video can only be the 1 slot...
I know it says sound but it will play video..