Jackael 10 Posted September 5, 2009 1) How can you make it so a certain unit can't move? (I have one dude on the roof of this building and he keeps freaking out and jumping to his death lol) 2) Is there any way to make autosaves? 3) It seems to me that script files are scripted a bit differently than the scripting done in the Editor. I want to make a script that spawns a helicopter at a certain marker, then makes it target a specific unit. I tried doing so with the syntax I would use in the Editor but it doesn't quite work right.. What is the correct way to script this? Share this post Link to post Share on other sites
mpatton 10 Posted September 5, 2009 (edited) 1) Have you tried giving him a move waypoint right next to him? If so, try setting him to stealth or something. 2) Hmm...give me a second I'll find the script. EDIT: found it, the code is: saveGame Basically, make a trigger, set it's condition to what you see neccessary, then type the above code into the activation box. It should autosave, though I haven't tested it. 3) I don't know how. Edited September 5, 2009 by mpatton Share this post Link to post Share on other sites
Jackael 10 Posted September 5, 2009 Alright, will try those. Share this post Link to post Share on other sites
kylania 546 Posted September 5, 2009 1. this disableAI "MOVE"; 2. enableSaving false; // Saving disabled and make autosave. enableSaving true; // Saving enabled without autosave. enableSaving [false, false]; // Saving disabled without autosave. enableSaving [false, true]; // Saving disabled and make autosave. enableSaving [true, false]; // Saving enabled without autosave. enableSaving [true, true]; // Saving enabled without autosave 3. heli doTarget targetObject; Share this post Link to post Share on other sites