Page 1 of 1

Script Help?

Posted: Wed Mar 12, 2008 5:17 pm
by preston566
I have this script that allows an AI to be activated on demand in the
players body. I don't know how to get my script in game.
I've heard Sapien can do it, but I don't get/know how to do it.
If Sapien does put scripts into use, please, tell me how.

Would I attach it to my player?

Thanks,
Preston556

Posted: Wed Mar 12, 2008 5:44 pm
by InvaderVeex
To get your script ingame:

Go to your data directory and go into the map's folder you are modifying. If the data folder doesn't have that, add it the same way it is in tags folder.

Once in the data folder create a new folder called scripts. You must put the saved .hsc file (script) in that folder.

Then go into Sapien, and go file>compile scripts

then compile your map with tool

Posted: Wed Mar 12, 2008 5:44 pm
by Andrew_b
sapien can compile scripts... ctrl c i believe. make sure you save itin the data/levels/test/map_name/map_name/scripts.

Posted: Wed Mar 12, 2008 5:52 pm
by preston566
Thanks. I'll have to test this out tomarow.
I'll tell you if I'm succesful.
Asking while I'm here, how to extract my tags in HEK+?
I want to modify one of my old maps, and just good to learn :wink:

hek

Posted: Fri Mar 14, 2008 3:14 pm
by GKMods
all you have to do is open the map in HEK+, look in the explorer window, click and drag over all the files or folders to highlight them, right click and hit "add to extraction cue" and then on the right in the extraction cue de-select the "save tag list" checkbox. Then just to make sure that it's set correctly go to the top left "tools" menu and select options. Then go to plugins and make sure your default tag folder is set to where you want the tags to be extracted. Now go back to the main window and hit start.

Next time if you want the tags in the same folder you wont have to do the whole options menu thing.
Hope this helps.