I'm trying to make it so that when you start the game: a nav-point appears over a certain warthog, and when you get into that warthog, the navpoint disappears and reappears on the other warthog so you can follow it.
The scripts that I wrote don't do ANYTHING :(
Script for when the map starts:
(script startup game
(begin
(ai_attach s1pass1 marines/team)
(ai_attach s1pass2 marines/team)
(ai_attach s1gunner1 marines/team)
(ai_attach s1gunner2 marines/team)
(ai_attach s1driver1 marines/team)
(ai_allegiance human player)
(unit_enter_vehicle s1pass1 squad1_hog "w-passenger")
(unit_enter_vehicle s1pass2 player_hog "w-passenger")
(unit_enter_vehicle s1gunner1 squad1_hog "w-gunner")
(unit_enter_vehicle s1gunner2 player_hog "w-gunner")
(unit_enter_vehicle s1driver1 squad1_hog "w-driver")
(activate_nav_point_object "default" (unit (list_get (players) 0)) "player_hog" 0.6)
(sound_looping_start sound\music\save\save music 1)
)
)
Script for warthog
(script startup follow_squad1
(begin
(if (= (vehicle_test_seat "player_hog" "w-driver" (unit (list_get (players) 0))) true)
(deactivate_nav_point_object (unit (list_get (players) 0)) "player_hog")
(activate_nav_point_object "default" (unit (list_get (players) 0)) "squad1_hog" 0.6)
(sound_looping_stop sound\music\save\save)
)
)
)
When scripts are compiled and go in game, the music starts, but doesn't stop when the code to stop it is run :(
Edited by OrangeJuice on Aug 12, 2009 at 09:45 PM