Home   Help Search Login Register  

Author Topic: Explosions  (Read 602 times)

0 Members and 1 Guest are viewing this topic.

jimbobii

  • Guest
Explosions
« on: 19 May 2004, 10:59:17 »
 ???I would like to know how to make a trigger and explosion ???
 ;DMUHAHAHAH BIG EXPLOSION ;D

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Explosions
« Reply #1 on: 19 May 2004, 11:03:54 »
cond: whatever
on act: Booooooom = "HEAT125" camcreate getpos whatever

Syntax not guaranteed. There are loads of other kinds of bombs like HEAT73, Shell125, Shell120, stuff like that. Download Chris OFP Script Editor in ed depot under tools, there you will find the complete list.

:beat: *Gets Shot* :beat:

jimbobii

  • Guest
Re:Explosions
« Reply #2 on: 20 May 2004, 08:56:54 »
 ???um need more info ???
 :(without it no big  ;DEXPLOSION ;D

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Explosions
« Reply #3 on: 20 May 2004, 09:39:27 »
The cond stands for condition in a trigger and the on act stands for on activation in the same trigger. Try reading some tutes in ed depot while you're at it. :-*

:beat: *Gets Shot* :beat:

PsyWarrior

  • Guest
Re:Explosions
« Reply #4 on: 20 May 2004, 12:23:59 »
Greetings,

Quote
Booooooom = "HEAT125" camcreate getpos whatever

To clarify:
Booooooom - The name of the shell you are going to create. This can be used to refer to it in other scripts/ triggers. But you don't really need to do that, so just keep it there.

"HEAT125" - The type of shell you are creating. Explosions are created in OFP by 'camCreating' (the game engine's way of creating objects) an explosive shell, which will explode when it touches something. You can replace this with any type of explosive. Try "LaserGuidedBomb" for a really big explosion!

camcreate - the command to create something

getpos whatever - replace whatever with the name of a unit or object on the map. For instance, if you place a infantry soldier down on the map and call him 'Bob', you would type
getpos Bob
The 'getPos' bit is game engine code to get the position of an object.

I agree with Armsty - Head over to the Editors Depot and read some basic tutorials. For instance, snYpir's intro to script snippits.

Enjoy blowing stuff up...

-Supreme Commander PsyWarrior
-Psychic Productions Studios

More Clarification:

Set the condition of the trigger to "Radio Alpha" and click the button that says 'Repeatedly'.

Insert the code detailed above into the "On Activation" text box.

Then, when you press 0 0 1 on the keyboard while previewing the mission, a shell will go off at the position of the object you named in the code.
« Last Edit: 20 May 2004, 12:27:47 by PsyWarrior »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Explosions
« Reply #5 on: 20 May 2004, 12:50:29 »
Even more fun you could use this script:

#loop
kablam = "Heat125" camcreate getpos guy
~0.01
goto "loop"

Try catching up with the guy now. :D

This is a nice tute (I think, haven't read it but SnYpir have written it so it must be good) if you want to learn the basics:

http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=1&category=1_1&subcategory=1_1&numreturn=25&displayformat=0&ofpv=1&searchstring=Comp&searchwhat=2&searchlevel=0&searchopts=

:beat: *Gets Shot* :beat: