I decided to try something besides H2 modding and went into CE, I'm doing fairly well and have made a beginning cutscene and my own map now. So I decided to try making a cutscene that must be triggered in a single player map by following p0lar_bear's tutorial, I did everything correctly and I followed every step, I got down to the script:
;;; This first script removes the bipeds used in the cutscene, so
they're not visible until the cutscene starts (script startup
hidethebipeds
(object_destroy chief)
(object_destroy deadman)
)
(script startup cutscene
(sleep_until (volume_test_objects cutscenestart (players)) 5) ; Stop
script execution until a player walks into the trigger
(fade_out 1 1 1 30)
(player_enable_input 0)
(sleep 60)
(volume_teleport_players_not_inside hide hideplayers) ; Hide the
players by teleporting them out of the area
(cinematic_start)
(cinematic_show_letterbox 1)
(object_create_anew chief)
(object_create_anew deadman)
(camera_control 1) ; Let the script control the camera
(camera_set cam1 0)
(sleep 30)
(fade_in 1 1 1 30)
(ai_attach chief cinematic1)
(ai_attach deadman cinematic1)
(ai_command_list_by_unit chief cyborgkill)
(sleep 60)
(camera_set cam2 0)
(sleep 30)
(camera_set cam3 0)
(ai_command_list_advance_by_unit chief)
(sleep 30)
(camera_set cam4 0)
(sleep 30)
(ai_command_list_advance_by_unit chief)
(sleep 30)
(unit_kill deadman) ; This is included to insure the biped dies, in
case the weapon's fire doesn't kill it
(sleep 60)
(fade_out 1 1 1 30)
(sleep 30)
(object_destroy chief)
(camera_control 0) ; Put the camera back onto the player's FPV
(volume_teleport_players_not_inside hide showplayers) ; Puts the player
back where s/he should be
(cinematic_show_letterbox 0)
(cinematic_stop)
(sleep 30)
(fade_in 1 1 1 30)
(player_enable_input 1)
)
but everytime i compile I get wierd errors that I'm not to familiar with:
error:
recompiling scripts after scenarios were merged
i expected a script or variable definition.: they're not visible until the cutscene starts (script startup
thats the error I get, I've tried changing the script around but I just get different errors. So if anyone is familiar with the tutorial or knows a thing or two about scripts, I'm desperately looking for help.
thx
Cutscene Script Problem
-
- Posts: 396
- Joined: Tue Nov 15, 2005 5:19 am
- Location: Right Outside Your Window With A Gun
![]() |