Jump to content
  • 0

What else other than "void"?


Skemech

Question

In acs when writing a script in acs you can write...

 

==============================

 

Script 1 (void)

{

        //Blah blah blah

}

 

==============================

 

(From my general understanding) "void" means no matter what is going on, that script will run. What else can you put instead of void though is my question?

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Well you would be quite wrong. Void means the parameters have no size (void being an object of no size in C). In ACS you only have one usable type being integers (technically strings as well but they are stored as an immutable index as an integer) which you can use as the parameter list, up to 3 or 4 depending on the execution type (Execute/Always is 3, WithResult is 4 because it has an extra variable available). If you want a script that always runs regardless, you use ACS_ExecuteAlways, the script itself does not define this.

 

The parameter list can look like this

script 13 (int tag)
{
  Door_Close(tag, 20, 0);
}

 

Edited by Edward850

Share this post


Link to post
Guest
This topic is now closed to further replies.
×
×
  • Create New...