OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Captain Crunch on 14 Apr 2003, 23:19:20
-
I've just learned this cool car bomb script but only one thing doesn't satisfy me; IT DOESN'T EXPLODE!!!
The _Vehicle setdammage 1 does give the dammage but it's no fun! I heard it's possible to attach a bomb with the setpos getpos thing but I can't find how!
I tried by laying an actual bomb underneath the car but as all the mines do, it doesn't stay fixed to its original emplacement, it somehow skids down the sloap. I guess this must be the addon's bug... ...Or is it?
And another question if I'm not already anoying, how can I find the position numbers on the map in the editor????? I mean the west-east and north-south position!
Thanx much for all help.
and many thanx to Johan Gustafsson for his scripting tutorial, good help to me
-
try a camcreate...
bang = "heat120" camcreate getpos unitname
heat120 is the wep name, check command refs for others!
This will create a heat120 shell right where the unit is, and explode! If you create it from a flying unit then it will drop to the ground.
Hope this helps!
-
Run a looping script. Syntax not guaranteed.
#loop
~0.2
? getdammage car1 > 0.99:exit
bomb1 setpos getpos car1
goto "loop"
For map coords try this tute. (http://www.ofpec.com/editors/resource_view.php?id=15)
-
try a camcreate...
bang = "heat120" camcreate getpos unitname
heat120 is the wep name, check command refs for others!
This will create a heat120 shell right where the unit is, and explode! If you create it from a flying unit then it will drop to the ground.
Hope this helps!
---ALRIGHT!!! Thanx a lot! It works perfect!! Just one more question, you mention the command refs, for other wep names, which command refs do you refere to exactly. Cos I have one but it's not mentioned in. Can you tell me where I can download this?
Thanx again for you r help titan
-----I'm checking macguba's script, I'll let you know, Thanx macguba!