Ok, fixed the script according to what Gamma927 said, it now looks like this:
(script continuous empty1
(begin
(if
(and
(= (unit_get_current_flashlight_state mhog) true)
(= (vehicle_test_seat mhog W-driver (unit (list_get (players) 0))) true)
)
(begin
(vehicle_unload mhog)
(unit_enter_vehicle (unit (list_get (players) 0)) mhog W-driver)
(unit_set_desired_flashlight_state mhog) false)
)
)
)
and sapien still thinks there is a mistake with the script, which is this:
12.01.09 21:37:24 sapien pc 01.00.00.0609 ----------------------------------------------
12.01.09 21:37:24 reference function: _write_to_error_file
12.01.09 21:37:24 reference address: 401b13
12.01.09 21:37:24 Couldn't read map file './sapienbeta.map'
12.01.09 21:37:24 CreateDevice succeeded with refresh rate = 0
12.01.09 21:37:25 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
12.01.09 21:37:25 Increasing sound decompression buffer size to 1048576 bytes
12.01.09 21:38:13 recompiling scripts after scenarios were merged.
12.01.09 21:38:13 this left parenthesis is unmatched.: (and
12.01.09 21:38:14 local player 0, weapon (0x0), deleted unexpectedly
12.01.09 21:38:18 [empty_scriptg line 9] the "vehicle_unload" call requires exactly 2 arguments.: (vehicle_unload mhog)
12.01.09 21:38:18 recompiling scripts after scenarios were merged.
12.01.09 21:38:18 [empty_scriptg line 8] this left parenthesis is unmatched.: (begin
from the debug, i have a feeling that the seat names have to be added manually to the vehicle_unload part, but i am not sure.
any ideas?