OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started 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:
-
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.
-
EDIT: thanks wolfrung when i stopped being a spanner i got it to work :P
-
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
-
ummm, yes, but it does have "Sh_105_HE", used by the M119 Static gun. :P
Planck
-
What is a millimetre between friends? :P
-
w00t ? did i say it doesnt have ? where ? ::) ;)
and mil is not dat much 4 me :P
LCD OUT
[note] an editing wizard :P
-
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:
-
:clap: whao there LCD you're still knocking about haha!
How goes it? thanks for the help BTW everyone
-
@ 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