OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ApocalypseWarrior on 05 Oct 2005, 22:00:08
-
A very simple question, how do i make time stand still in my map?
I know pretty much nothing about the editor, so a detailed walkthrough would be greatly appreciated.
-Question 2 removed ;)
-
welcome to the forum!
take a look at setacctime (http://www.ofpec.com/editors/comref.php?letter=S#setAccTime).
also, one question per post please - keeps things simple for everyone ;)
-
Thats one awesome script, but it wasnt what i meant. And thats my fault, im an idiot who cant explain stuff.
I just wanted the time itself to stop, but not the game to actually go in slowmotion lol. Like, i need a time where both flares and smokegrenades work, and they only do around 5 am, so i need to freeze that time.
>IT NEEDS TO WORK IN MP<
And cmon, just gimme a lil link to the easiest respawn tutorial :P i keep finding such confusing ones.
-
You could very easily go and look in the Editors Depot yourself, there are oodles of tutorials in there.
But, just this once.............
Respawn Tutorial (http://www.ofpec.com/editors/resource_view.php?id=829)
Planck
-
Well, thats exactly the one tutorial i didnt understand. Dosnt seem to tell me what to do after ive put the file in my mission directory...
EDIT: Maybe i should ask somebody to do these 2 things for me instead? :P
-
If I recall the tutorial correctly it explains everything in the minutest little detail.
What to do once you have the description.ext in your mission folder?
Simple.......get killed.
Edit: Maybe you should just say which bit confuses you.
Planck
-
This would probably work,
#TimeLoop
~60
SkipTime -0.6
Goto "TimeLoop"
Don't trust me on the maths or how efficient the scipt would be. You could always add a variable for when you want the scipt to exit and time to carry on as normal.
-
Actually, Arch, that math doesn't work out. skipTime's duration is in hours, which means skipTime -1 would skip backward 1 hour.
To skip back 60 seconds or 1 minute would be 1/60th of an hour --> .0166
so the correct command would be skipTime -0.166
-
Cheers Tyger. I'm mathematically dyslexic. I knew it was probably wrong that's why I made the note.
Good that someone can figure it out. ::)
-
I must have misunderstood something. I put the description text in my mission folder, but nothing happens. It dosnt make sense either that you just put it in a folder with hundreds of other missions anyway o.O
There must be something i need to do inside the editor. And yes, maybe it DID it explain in detail, but as i said, im pretty new with the editor.
Thanks for trying though ;)
-
Ok, listen closely.
Open the mission editor on Desert Island.
Where it says "EASY" in the top right hand corner, left click it. It should now say "ADVANCED".
Now, double click in the map area. The unit box should appear. It's defaulted to west dude so leave that. In the "Initialization" section write this, exactly,
This Exec "TimeLoop.sqs"
Now press "OK"
Save the mission as whatever you want and Alt+Tab out of Flashpoint.
Now, if your Flashpoint Character is called "Apocalypse Warrior" Follow this,
C:\Program Files\Codemasters\Operation Flashpoint\Users\Apocalypse Warrior\missions
Basically dig into the flashpoint folders looking for yourname\missions.
Once you get there you'll see a folder with whatever you saved your mission as, as the title. Open that folder and you'll see a "Mission.SQM" It Opens with Wordpad or Notepad. Don't open it, that's for much later.
Now I attatched a file called "TimeLoop.Zip", Download it, open it and put the file in the same folder as "Mission.SQM". Not the Zip, the .SQS file.
It's the script written up there ::).
The unit starts it in the editor with the "This Exec "TimLoop.sqs" bit. You'll have to set the actual time you want it to be in the Editor. I'm sure you can suss that out on your own. If there's anything I missed just ask.
-
Nice walkthrough, and it works. Kinda.
It seems like time goes backwards now??? lol
Edit: OMG, never put:
#TimeLoop
~0
SkipTime -0.166
Goto "TimeLoop"
god that made me sick
-
now see this is why i said one question per thread. who is answering what? and to which replies is the original author responding?
it is a very mess. as a moderator i shall now assert my authoritah and insist that only posts on the initial question of stopping (watch) time should be placed in this thread.
@ApocalypseWarrior - the other question about respawning concerns multiplayer. if you need more help than has already been given in this thread, please repost in the multiplayer board (http://www.ofpec.com/yabbse/index.php?board=7).
-
Oh wait, it works! Dont know what happened at my first try. Thanks a lot! Btw, this hopefully works in MP?
Now to the respawn question, in the MP forums ofcourse :)
Hey The-Architect, would be awesome if u could do a walkthrough like that for respawning! (and instead of doing a post that so many would flame, maybe u could PM it? :D )
-
once your question has been answered to your satisfaction, and you've tested that it works, click the (http://www.ofpec.com/yabbse/YaBBImages/solve.gif) button. that way our admin colleagues can garner the solved threads together and add your question to the FAQ, along with the answer. :)