Jump to content

Mission coding help!


Recommended Posts

Hi!

i made a cutscene in a main stripped but i don't know how to make it work properly xD

 

when i start a new game i see the player and then the cutscene xD

but how can i hide the player?

i want that directly goes to the cutscene like the original game

 

 

 

DEFINE MISSIONS 3DEFINE MISSION 0 AT @Noname_1          // Initial 1DEFINE MISSION 1 AT @Noname_2          // Initial 2DEFINE MISSION 2 AT @INTRO             // IntroDEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' 01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 Camera.SetAtPos(2488.56, -1666.84, 13.38)$PLAYER_CHAR = Player.Create(#NULL, 2488.56, -1666.84, 13.38)$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group Camera.SetBehindPlayerset_weather 0 wait 0 Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "VEST", "VEST", Torso)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = Falsefade 1 0 select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0 016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0 0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here $DEFAULT_WAIT_TIME = 250 03E6: remove_text_box start_mission 0  // Initial 1wait 0 start_mission 1  // Initial 2wait 0 $Mission_Intro_Passed = 0 start_mission 2  // Intro//-------------Mission 0---------------// Originally: Initial 1:Noname_1$MISSIONS_PASSED = 0 $Mission_Intro_Passed = 0 $ONMISSION = 0 end_thread //-------------Mission 1---------------// Originally: Initial 2:Noname_2$X_House = 2515.07 $Y_House = -1673.98 $Z_House = 12.71 end_thread //-------------Mission 2---------------// Originally: Intro:INTROthread 'INTRO' $ONMISSION = 1 gosub @INTRO_54 if wasted_or_busted else_jump @INTRO_45 gosub @INTRO_1239 :INTRO_45gosub @INTRO_1206 end_thread and so on...........

 

 

Thanks!!

 

 

 

Link to comment
https://gtaforums.com/topic/459553-mission-coding-help/
Share on other sites

where exactly?

i put it in here:

 

//-------------Mission 2---------------// Originally: Intro:INTROthread 'INTRO'fade 1 0  $ONMISSION = 1 gosub @INTRO_54 if wasted_or_busted else_jump @INTRO_45 gosub @INTRO_1239 :INTRO_45gosub @INTRO_1206 end_thread and so on...........

 

but with no succesfull, it still appearing...

 

here is my complete script, i mean with cutscene.....

http://pastebin.com/NJnd6RiM

Link to comment
https://gtaforums.com/topic/459553-mission-coding-help/#findComment-1060132387
Share on other sites

**********SOLVED*****

 

I only had to replace the camera position for my own and add a fade time wink.gif

 

Camera.SetPosition(1006.155, -1963.991, 115.6919, 0.0, 0.0, -0.7)Camera.PointAt(1006.155, -1963.991, 115.6919, 2)fade 1 5000 $PLAYER_CHAR = Player.Create(#NULL, 2488.56, -1666.84, 13.38)

 

 

please close the topic

Link to comment
https://gtaforums.com/topic/459553-mission-coding-help/#findComment-1060133784
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.