OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: minimilo on 17 Jul 2004, 17:25:13

Title: fires
Post by: minimilo on 17 Jul 2004, 17:25:13
is there away in which a fire can be lit on a radio command, or by moving within a trigger?
Title: Re:fires
Post by: Planck on 17 Jul 2004, 17:38:00
In the triggers 'On Activation' field put:

firename inflame true

firename will be whatever name you give your fire.

If you want the fire to go out again when you leave the trigger area then make the trigger 'Repeatedly' and put:

firename inflame false

in the On Deactivation field.


Planck
Title: Re:fires
Post by: Messiah on 17 Jul 2004, 19:39:04
remember if you want the fire to be lit by radio, to set 'activated by' to 'Radio Alpha' or whatever radio you want, and 'Present'  ;)
Title: Re:fires
Post by: minimilo on 17 Jul 2004, 22:40:11
thnx alot, also, is there any where that i can find out other basic commands
Title: Re:fires
Post by: Planck on 17 Jul 2004, 22:46:47
Yes go to the Editors Depot on this site and get the Command Reference by BIS.

Plenty of tutorials there also.


Planck
Title: Re:fires
Post by: minimilo on 17 Jul 2004, 22:49:06
cheers again, and regarding the fire, canm i get it to light between certain times?
Title: Re:fires
Post by: Messiah on 17 Jul 2004, 22:55:16
as in time you set or the game time (as in what time it is at the moment, say 7pm etc)?

there is a way to check this, i think you'll find it in the command reference... i cant remember how to do it off hand, but i know where it can be found - check out the grouplink 2 script,... that checks what time of day it is to make AI choose between firing flares or throwing smoke when engaging the enemy  :)
Title: Re:fires
Post by: minimilo on 17 Jul 2004, 23:22:41
asin the time within the game, also, is there a way to randomise game time and date?
Title: Re:fires
Post by: macguba on 18 Jul 2004, 00:37:50
Try something like this in your init.sqs file:-

skipTime (random 12)

which should give you a random time between the time you set in the mission editor and 12 hours later.    Maybe if you use big enough numbers it will change the date, dunno.    If so you just set the date to 1 January in the mission editor.   Syntax not guaranteed.

To make a fire come on at a certain time you could use a trigger:

Condition:  dayTime > 17.2
On Activation:   fire1 inflame true

Not guaranteed, you might need to play with it a little to make it work.

I strongly recommed you read the command reference from start to finish, a bit like a book.    Don't go into the commands in detail, just get an idea of what's there.  The online version has many helpful Comments and although the unofficial version is a little dated, it sometimes gives a very useful perspective on a command.
Title: Re:fires
Post by: box on 18 Jul 2004, 04:05:05
if you want a radio message to make sumthing happen like this fire thing dont you need to do even more 'editing' to make somone say that radio command, because ive never seen an action to say 'alpha this' etc in the command menu
Title: Re:fires
Post by: THobson on 18 Jul 2004, 07:47:07
No you just set the trigger to activate on the radio command just as Messia said.  Then in the game if you press 0 you will see a menu with 0 for the radio, press 0 again and you will see the list of radio options.  What you get there is whatever you put in the text field of the trigger.  Of you have put nothing then you will get the default: Radio Alpha etc.

Step by step:

create a trigger
For Activation: select Radio Alpha.
Keep the condidion set to: this
set On Activation to:  fire1 inflame true
In Text put: Baby light my fire

Save it.

Place a fire and give it the Name:  fire1

In the game just press 0 0 1 to light the fire.

Read the Comref guide on this site.

Experiment