Script Center Map on Dude

Nirran

Vault Senior Citizen
Modder
forgot how to script center camera on dude,anyone remember?

edit : is even a thing?

edit 2

yes found this
Code:
metarule3(METARULE3_TILE_SET_CENTER,tileNum,elevation,0)

doesnt do anything

Code:
   metarule3(METARULE3_TILE_SET_CENTER,tile_num(dude_obj),elevation(dude_obj),0);
   tile_set_center(tile_num(dude_obj));

tried them both
 
Last edited:
whats wrong with this code?doesnt work but display fires

Code:
#include "D:\Game Files\Fallout 2\HEADERS\includes.h"

procedure start;
procedure map_enter_p_proc;

variable tile,elev := -1;

procedure start begin
   if(game_loaded) then begin
      set_global_script_repeat(5);
      //set_global_script_type(3);
      //display_msg("Fired");
   end
   if (elevation(dude_obj) != elev) then begin
      elev := elevation(dude_obj);
     tile := tile_num(dude_obj);
      //metarule3(METARULE3_TILE_SET_CENTER,tile_num(dude_obj),elevation(dude_obj),0);
      tile_set_center(tile);
     display_msg("Elev Fired " + Elev);    
   end
end

procedure map_enter_p_proc begin
   elev := elevation(dude_obj);
   tile := tile_num(dude_obj);
   //metarule3(METARULE3_TILE_SET_CENTER,tile_num(dude_obj),elevation(dude_obj),0);
   tile_set_center(tile);
   display_msg("Enter Fired");
end

sfall global script,if that matters

edit : nevermind,it works it doesnt ignore scroll blockers
 
Last edited:
Is this intended to be animated? (...as opposed to a simple find-PC and center the map.)

If called while the PC is walking, I would imagine bad things if the PC is walking upwards or downwards; North or South.
 
Back
Top