Reply To: VARIABLES – help!
Home / Forums / Modders Corner / Mafia Editing / Mafia mods / VARIABLES – help! / Reply To: VARIABLES – help!
Bank Notes: 1,090
Use get_remote_float or set_remote_float
get_remote_float xx, yy, zz – returns to xx a value in variable zz which is in script yy
xx – ID of variable in current script
yy – ID of actor remote script
zz – ID of remote variable in script yy
set_remote_float xx, yy, zz – sets variable xx as variable zz in script yy
xx – ID of variable in current script
yy – ID of actor remote script
zz – ID of remote variable in script yy
In your script:
script_1:
...
let flt[1] = 2
...
label 1
let flt[1] = flt[1] - 1
script_2:
// eg
findactor 3, "script_1"
...
// you have to use get_remote_float always, when you want to get a value from remote variable
get_remote_float 0, 3, 1
if flt[0] = 1, 1000, -1
...
label 1000
...
