Only_Once variable - question

Discussion in 'Fallout General Modding' started by modmaker, May 21, 2006.

  1. modmaker

    modmaker First time out of the vault

    73
    Apr 2, 2006
    How this variable works?
    In original scripts you can find
    Code:
    variable Only_Once:=0;
    Ok - we want to create new variable with value 0. BUT in map_enter_p_proc we can find
    Code:
    Only_Once:=0;
    But Only_Once has already value 0. You can find it in most of original fallout scripts, but I still don't understand how it works...

    Is there anyone who knows how it works?
     
  2. clercqer

    clercqer Senator oTO Orderite

    Feb 14, 2005
    Maybe it's just a bit of 'unnecesary' code or something? Because it works fine if you remove the line in map_enter_p_proc (it does in scripts I make).
     
  3. modmaker

    modmaker First time out of the vault

    73
    Apr 2, 2006
    "Unnecesary" codes are always (scripts by BIS) deleted or commented, as far sa I know...
     
  4. clercqer

    clercqer Senator oTO Orderite

    Feb 14, 2005
    Maybe the situation here is similar to this one?
     
  5. modmaker

    modmaker First time out of the vault

    73
    Apr 2, 2006
    No, it's not the same. In original Fallout script is not value of Only_Once changed and it works like local/map/global variable. I tied it, it works, but I still don't understand it.