Jump to content

What is wrong with this syntax?


Asterra

Recommended Posts

I know my questions tend to be too esoteric for an answer but it never hurts to try letting a question stew here for a bit.

 

This time, it's pretty straightforward. I don't understand the syntax for a certain function, because the provided examples are either too ambiguous or simply inaccurate.

 

https://geck.bethsoft.com/index.php?title=OnCrosshairOn

 

Here it discusses how to use OnCrosshairOn. Can put in a form, form list or form type. The only syntax that seems to work as advertised is form type.

 

SetEventHandler "OnCrosshairOn:42" AScript

 

The others don't compile.

 

SetEventHandler "OnCrosshairOn" ""::vMOLacey AScript

 

So I've tried permutations. "":vMOLacey "vMOLacey" etc. It doesn't like that second argument to be anything but a proper script. I also tried tossing the form into the first argument, same as with form type. "OnCrosshairOn:vMOLacey" "OnCrosshairOn::vMOLacey" etc. Nothing.

 

Since I can't get this to work, I can't even test whether this works on base objects or not. Right now, I'm fairly sure it just doesn't work at all. I can't find any examples of people even using this in a script.

Edited by Asterra
Link to comment
Share on other sites

  • Recently Browsing   0 members

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