This modification is, like other script hooks, adds a external scripting possibility to SA. I know CLEO already exists, but SA's SCM language has some major limitations -- so I wrote this .NET scripting hook. It is inspired by HazardX's IV scripting hook, and based on the existing C++ SA script hook.
This version is a pretty tiny initial testing version, with just a few APIs (and a CallOpcode function )
How to use this mod?
Just copy the scripts directory and the .asi file to your SA directory. The .NET Framework 3.5, and the Visual C++ 2008 Runtime are required. For development I recommend using Visual Studio/Visual C# Express's IntelliSense feature, example scripts for C# are in the scripts/development/ directory.
The hook will read both compiled .dll files, and .cs/.vb files, though Visual Basic is untested. To open or close the console, just press `.
TestScript2.cs has a keybinding of 'U': spawn a Ballas member and add some health to the player.
RandomStuff.cs has more key bindings:
- 'I': display a text box
- 'O': Spawn a Vagos member.
- 'kill' in console: Kill the player.
- 'spawn groves' in console: spawn 3 GSF members around the player
Where to download?
You will need at least the DirectX November 2008 runtimes to use the script hook!
I look forward to your comments.
Edited by NTAuthority, 16 April 2009 - 07:40 PM.