Only_Once variable - question

modmaker

First time out of the vault
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?
 
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).
 
Ratty said:
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).

"Unnecesary" codes are always (scripts by BIS) deleted or commented, as far sa I know...
 
Ratty said:
Maybe the situation here is similar to this one?
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.
 
Back
Top