map_enter_p_proc

Discussion in 'Fallout General Modding' started by Nirran, Apr 17, 2018.

  1. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    any way of getting this to fire in sfall global scriptS?


    Nirran
     
  2. Lexx

    Lexx Background Radiant
    Moderator Modder

    Apr 24, 2005
    Uh, I just use it in a global script.

    Code:
    procedure start begin  
       if (game_loaded) then begin
           set_global_script_type(0);
       end
    end
    
    procedure map_enter_p_proc begin
       if (global_var(GVAR_PLAYER_GOT_CAR) != 0) then begin
           debug("car location: " + car_current_town);
           
           call check_vehicle_trunk;
           call check_vehicle_location;
       end
    end
    etc... works perfect.
     
  3. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    does it fire auto when map is entered?
     
  4. Lexx

    Lexx Background Radiant
    Moderator Modder

    Apr 24, 2005
    Yes, everytime you enter a map. Right now I'm primarily using it to replace most of the car script code, because I hated how its code is spread over every map script.
     
    • [Like] [Like] x 1
  5. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    use the trunk script,check megamod for my code,it is all in trunk script and none in themap scripts
     
  6. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    281
    Oct 29, 2015
    good decision.
     
  7. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    281
    Oct 29, 2015
    Car Fuck Up script?
     
  8. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    that has the code yes,complete code is in megamod
     
  9. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    just out of curiosity,what all fallout 2 procedures are usable in sfall global scripts?
     
  10. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    281
    Oct 29, 2015
    map_update_p_proc
    map_exit_p_proc
     
  11. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007