Home   Help Search Login Register  

Author Topic: which part of download  (Read 494 times)

0 Members and 1 Guest are viewing this topic.

ghostunit

  • Guest
which part of download
« on: 21 Mar 2003, 14:45:00 »
Pls help which part of this download do i use to make just the explosoin sqs work.i have played with it and made my own mission and done every thing the same as the example mission. but it wont work. which part makes up the explosion.sqs

;Script by MP - markpalmer@hotmail.com
;Based on script created by David Berka (David.Berka@nmi.at) respect is due

;creates a large explosion at an object location, vehicle, infantry etc..
;can be easily modified to accept coords, but you know that already ;-)
;usage: [objectname] exec "explosion.sqs"
This is the explosion part.
_AmmoType = "Heat120"
_Unit = _this select 0

_Explosion = GetPos _Unit

_cx = _Explosion select 0
_cy = _Explosion select 1
_cz = _Explosion select 2

_tempObj = _AmmoType camCreate[_cx, _cy, _cz]
~0.01
_tempobj = objNull

exit


this is the mission prt
version=11.000000;
class Mission
{
   addOns[]={};
   randomSeed=2428419.000000;
   class Intel
   {
      briefingName="ExplosionTest";
   };
   class Groups
   {
      items=2.000000;
      class Item0
      {
         side="WEST";
         class Vehicles
         {
            items=1.000000;
            class Item0
            {
               position[]={4795.351563,24.660000,11732.665039};
               azimut=180.000000;
               id=0.000000;
               side="WEST";
               vehicle="SoldierWB";
               player="PLAYER COMMANDER";
               leader=1.000000;
               skill=0.200000;
               markers[]={};
            };
         };
      };
      class Item1
      {
         side="WEST";
         class Vehicles
         {
            items=1.000000;
            class Item0
            {
               position[]={4797.204590,24.660000,11541.226563};
               azimut=355.000000;
               special="NONE";
               id=1.000000;
               side="WEST";
               vehicle="Truck5tOpen";
               leader=1.000000;
               skill=0.200000;
               text="Truck1";
               markers[]={};
            };
         };
         class Waypoints
         {
            items=1.000000;
            class Item0
            {
               position[]={4795.351563,24.660000,11661.595703};
               expActiv="[truck1] exec ""explosion.sqs""";
               synchronizations[]={};
               class Effects
               {
               };
               showWP="NEVER";
            };
         };
      };
   };
};
class Intro
{
   addOns[]={};
   randomSeed=14477315.000000;
   class Intel
   {
   };
};
class OutroWin
{
   addOns[]={};
   randomSeed=1754627.000000;
   class Intel
   {
   };
};
class OutroLoose
{
   addOns[]={};
   randomSeed=12487171.000000;
   class Intel
   {
   };
};

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:which part of download
« Reply #1 on: 21 Mar 2003, 15:17:24 »
Right.    First things first.    Go an read snYpir's Introduction to script snippets.    It's in the Ed Depot - Tutorials.

Done that?    Good.   You now know enough to answer your own question. 8)

But as a check ..... :P

Open up the Mission Editor and create a mission.    Make a player unit.    About 50m away place an empty jeep.   Name the jeep target.     Create a trigger:-  

Countdown:    5     5      5
Condition:   true
On activation:    [target] exec "explosion.sqs"

Now copy the file called explosion.sqs (it came in the download) into the mission directory.

Go back to the mission editor and preview the mission.   5 seconds after it starts the jeep will explode.

If you are still having trouble, then come back and ask.   But do not say "it doesn't work", which is of no help to anybody.    Tell us what you did and what happened and we'll have a much better chance of being able to help you.  ;)

PS - have a look at some other other tutorials too, particularly in Getting Started - First Steps.
« Last Edit: 21 Mar 2003, 15:23:26 by macguba »
Plenty of reviewed ArmA missions for you to play