Home   Help Search Login Register  

Author Topic: Script's and Questions!  (Read 891 times)

0 Members and 1 Guest are viewing this topic.

nim2oo4

  • Guest
Script's and Questions!
« on: 02 Oct 2004, 05:44:11 »
Hey guys  ;D
Just a few questions about some scripts.
1. Is there a random weather script out there im talking you play the mission once its raining, you play it the second time it mayb sunny or night.

2. Is it possible to make a small loop script 2 make a small logo stay on the screen say in the top right corner.

Cheers,
            Nim  8)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Script's and Questions!
« Reply #1 on: 02 Oct 2004, 12:17:12 »
1.  You don't need a script, just one line of code.  Put this in your init.sqs

0 setOvercast (random 1)

Syntax not guaranteed.


2.  You don't even need a script.    The rescource has to be defined in description.ext, right?  Part of the definition (called duration I think) is the time the resource for which the resource will be displayed.   Set it some huge number and, as long as you don't display another resource, it will stay there the whole time.


Oh, and

Welcome to the forum!
« Last Edit: 02 Oct 2004, 12:17:41 by macguba »
Plenty of reviewed ArmA missions for you to play

nim2oo4

  • Guest
Re:Script's and Questions!
« Reply #2 on: 02 Oct 2004, 12:55:01 »
1.  You don't need a script, just one line of code.  Put this in your init.sqs

0 setOvercast (random 1)

Thnx Macguba the logo bit really helped me out but i think i should be abit more speficic with the weather part. The overcast thingo wasnt bad but what i want is say these: rain,sunny,night,dawn and dusk. And i just want one of these 2 be randomly selected each time the map is loaded.

Cheers,
            Nim

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Script's and Questions!
« Reply #3 on: 02 Oct 2004, 13:06:24 »
Well, it's just a case of combing the random, setOvercast, setRain, and skipTime commands in the way that you want.

For example, set your mission time to dawn and have this in init.sqs

? (random 2) > 1 : skipTime 12
Plenty of reviewed ArmA missions for you to play

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Script's and Questions!
« Reply #4 on: 04 Oct 2004, 02:07:52 »
Quote
1. Is there a random weather script out there im talking you play the mission once its raining, you play it the second time it mayb sunny or night.

Toadlife made a random weather script that will change the weather during the course of the mission. If it isn't in the ed depot, you can find it in operation lojack by depboing the mission. It doesn't randomly set the night though, and in my opinion, it tends to change the weather too frequently. I'd use macguba's suggestion, of just a few lines in your init.sqs. For example, completely random weather would be done with this:

Code: [Select]
0 setovercast 1
0 setfog 1
0 setrain 1
skiptime random 24

However, you may want to adjust the numbers a little, because otherwise you are going to get more bad weather/visibility than not.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

nim2oo4

  • Guest
Re:Script's and Questions!
« Reply #5 on: 04 Oct 2004, 09:53:15 »
Hey Guys,
Many thanks everything working smoothly now  ;D

Cheers,
            Nim