OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Davies1 on 24 Nov 2007, 15:23:08

Title: Hi guys - this is ridiculous I know n00bness
Post by: Davies1 on 24 Nov 2007, 15:23:08
Hello after many years off ofp I finally got round to getting Arma, I used to mess about with missions and also help others on here years ago when i knew what i was doing  :P

So simple question, refresh my memory if you can. What code would I put in the init for an explosion to occur in a trigger?

I remember ofp used to be something like grenade = "shell105" camcreate [getpos this select 0, getpos this select 1]

Arma isnt recognising the same sort of thing. using "Sh_105_HE" from the weapons list doesnt work etc,.

Please help as I really cannot remember anything these days  :cool2:
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: Wolfrug on 24 Nov 2007, 15:28:11
Hey there! Welcome back to the wonderful world of ArmA editing!  :D

Two things:

1) Use CreateVehicle (http://www.ofpec.com/COMREF/index.php?action=list&game=All&letter=c#86) instead.

Bomb123 = "SH_105_HE" createVehicle getpos [dude select 0, dude select 1]

Should work.  :)

Wolfrug out.
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: Davies1 on 24 Nov 2007, 15:32:57
EDIT: thanks wolfrung when i stopped being a spanner i got it to work  :P

Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: LCD on 24 Nov 2007, 15:45:08
wolfrug got da code mystiriusly wrong :P

it shud b

Bomb123 = "Sh_125_HE" createVehicle  [getpos dude select 0, getpos dude select 1,getpos dude selec 2]

or in short

Bomb123 = "Sh_125_HE" createVehicle  (getpos dude)

so dat shud b it :D

LCD OUT

P.S

WELCOME (BACK) 2 OFPEC M8

Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: Planck on 24 Nov 2007, 18:50:43
ummm, yes, but it does have "Sh_105_HE", used by the M119 Static gun.   :P


Planck
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: Spooner on 24 Nov 2007, 19:23:27
What is a millimetre between friends? :P
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: LCD on 25 Nov 2007, 00:24:10
w00t ? did i say it doesnt have ? where ?  ::) ;)

and mil is not dat much 4 me :P

LCD OUT

[note] an editing wizard :P
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: Spooner on 25 Nov 2007, 02:01:51
Even I have no idea what I was talking about earlier. For some reason I was convinced that Wolfrug had used the "SH_106_HE" when it should have been the "SH_105_HE". I should stop trying to read, it just gets me confused :whistle:
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: Davies1 on 25 Nov 2007, 10:33:52
 :clap: whao there LCD you're still knocking about haha!

How goes it? thanks for the help BTW everyone
Title: Re: Hi guys - this is ridiculous I know n00bness
Post by: LCD on 25 Nov 2007, 15:05:18
@ spooner... yup ive got dis device dat make u forget everything  :whistle:  :D as long as u donno wat was wrong... nothin was wrong :D

@ Davies1 : i came back bout 3-4 months ago :D and it goes kool ;)  :cool2:  :D

alwayz glad 2 help :D

LCD OUT