Asterra Posted May 17, 2019 Share Posted May 17, 2019 (edited) 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 May 17, 2019 by Asterra Link to comment Share on other sites More sharing options...
rickerhk Posted May 18, 2019 Share Posted May 18, 2019 You might ask here: https://www.nexusmods.com/newvegas/mods/58277 You could try this syntax: SetEventHandler "OnCrosshairOn" "first"::vMOLacey AScriptor SetEventHandler "OnCrosshairOn" AScript "first"::vMOLaceyhttps://geckwiki.com/index.php?title=SetEventHandler Link to comment Share on other sites More sharing options...
Recommended Posts