OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 03 Jun 2003, 02:21:28
-
???How is it that you create Laser Guided bombs to fall inside a trigger area (only) during a cutscene?
???They just told me to do it in the hot topic 'Destruction Inside Trigger' ???
-
In your camera script put:
bomb="LaserGuidedBomb" CamCreate (Getpos f1)
where f1 is a named object. ;) Or you could put that line in a trigger as well, I believe. (try it out)
Asmo
-
Hey
Or this ;) :
flare1="shell125" camcreate[getpos dude select 0, getpos dude select 1,50]
O'Neil ;)
-
In your camera script put:
bomb="LaserGuidedBomb" CamCreate (Getpos f1)
where f1 is a named object. ;) Or you could put that line in a trigger as well, I believe. (try it out)
Asmo
Just write that name (F1) in the NAME field of the trigger itself (not the TEXT field) :o 8) :-*
l8r
-
So that will get the bomb to hit a specific target?
-
it wil create da bomb on da position u specified - f1 in asmos example ;)
if its in da sky da bomb wil fall till it hit somin
LCD OUT
-
it will hit whatever you've named and then defined in the camcreate code:
in Tomby's example F1 = your trigger...
bomb is created at F1
in O'Neil's example (which won't get you an LGB by the way ;) )
the bomb would be created 50 meters above the unit/vehicle/etc that you named dude
if you skip the setpos stuff the bomb will be created at the feet of the unit named dude
:toocool:
-
LCD 1 - Kali 0 :P
m fast :o ;D
LCD OUT
-
bomb="LaserGuidedBomb" CamCreate (Getpos f1)
Im sorry I wasn't to specific.... If I understood you correctly the bomb that you camcreated will strike the object you assigned in this case as you pointed out f1
Is this an instant strike?
I was thinking bomb starts at 500m and your camera is on its ass till it hits the target... possible?
-
u can create it somwere nd use setvelocity 2 fly it were u want ;)
just remember dat bombs dat r not LGBs have life span of 10 secs :o
nd u wil need 2 calculate da velocity neede :-\ im just starter 2 phisics so cant do dat yet :(
LCD OUT
-
Yeah.. the code you posted would be an instant strike literally at the feet of poor old F1
if you used the code O'neil gave it would create your bomb at 50 meters above the named target and then let gravity do the rest....
-
Ok... understand
Thanks