Home   Help Search Login Register  

Author Topic: How would you make an explosion at a certain time and a guy light a camp fire?  (Read 1116 times)

0 Members and 1 Guest are viewing this topic.

Mark Acavar

  • Guest
Hey how would you make an explosion and a guy light a campfire? Would you have to use snippets? Sorry I'm new :)
   

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Welcome to the forums Mark!

If you're new I strongly recommed you head over to the Editors Depot - Tutorials - Getting Started - First Steps.     Use the browse function.    There's a lot of good stuff in there.

You would have to use a line of code, but you don't need a seperate script file for simple stuff like this.

To light the fire

fire1 inflame true

goes in the on activation field of a trigger.   Remember to name the fire fire1 (or whatever)

What kind of explosion do you want?   Tell us more about the circumstances.
Plenty of reviewed ArmA missions for you to play

m21man

  • Guest
To make an explosion at a certain place: First, let's make us a marker where we want the blast. I'll call my mine "boommarker". Assuming you're doing this in a cutscene, use a script that executes at the beginning of the mission, waits until you want the blast, then detonates. Copy this into a text file, name it (Anything You Want).sqs and put it in the mission file. Voila! You got your self a huge bang ;D wherever the marker is.

;Script Begins Here
_boom = getmarkerpos "boommarker"
_bx = _boom select 0
_by = _boom select 1
_bz = _boom select 2

_power = "heat73"

_tempobj = _power camcreate [_bx,_by,_bz]
~0.01
_tempobj = objnull

exit
;Script Ends Here.

Switch "heat73" to the name of any explosive to get a good blast power. Here's the names:
heat125, shell125, heat120, shell120, heat105, shell105, heat73, shell73, mortar, grenadelauncher, and handgrenade.

Offline .pablo.

  • Former Staff
  • ****
  • When in doubt, empty the magazine.
Quote
To make an explosion at a certain place: First, let's make us a marker where we want the blast. I'll call my mine "boommarker". Assuming you're doing this in a cutscene, use a script that executes at the beginning of the mission, waits until you want the blast, then detonates. Copy this into a text file, name it (Anything You Want).sqs and put it in the mission file. Voila! You got your self a huge bang  wherever the marker is.

is there a way to make it explode in mid air?

Kaliyuga

  • Guest
is there a way to make it explode in mid air?

yeah if you camcreate it way high in the air it should explode before it hits the ground... all shells have a lifetime to them..

also if you camcreate two shells at the same spot and at the same time they should collide and cause an explosion. ;)


m21man

  • Guest
But wouldn't you have to spawn the shell at an absurd height? You could never make it accurate enough to make good flak. Maybe for a hit on a fast aircraft you could spawn the explosive 5-10 meters ahead of the plane and a meter above it? The plane would probably hit it.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
There might be flak script in the Editors Depot.

By camcreating two shells at the same place to make them explode immediately you could easily create accurate flak.    Make the position of the explosion(s) relative to the position of the aircraft.      Experiment with different shells to find the one(s) that look best.     Check the weapons and ammo listing in the Ed Depot for the names.
Plenty of reviewed ArmA missions for you to play