Jump to content

Timer problems


blazeda59

Recommended Posts

Went around and turns out there is no setstate function. There is a setOpenState though, though its only meant to be called on doors. Is that what you are trying to do?

 

<refID>.setOpenState <state:int>

Link to comment
Share on other sites

I am pretty sure “State” is a local script variable in the script attached to the base object of the “wallREF” reference and he simply wants to set it to 0 from some other script.

 

With “wallREF.set State to 0” you got it “almost” right. It is just that the Set command is not a function called by reference. I wouldn't even call it a function, it is more of a language construct, like “End” and “If”.

 

The correct syntax is: “Set wallREF.State To 0”.

 

This will work, assuming the base object that wallREF references has a script attached that includes a local variable called “state”.

 

What Glenstorm explained is very true, however. If you want to call a function on a object other than the one your script is running on, you would do it like he described.

 

Good luck.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...