- This topic has 3 replies, 3 voices, and was last updated 13 years, 5 months ago by .
VARIABLES – help!
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
...
As far as I was aware, variables have to be flagged in the hex, otherwise the script bypasses them as ordinary and inanimate commands.
Thanks guys, I’ve already solved it. I typed “fintactor” instead “findactor”, I am such a dickhead :-[
- You must be logged in to reply to this topic.
