OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ProudPotter2490 on 08 Dec 2005, 22:10:34
-
I wanted to know if there was a script that would make the LST cave in the the mission on the Red Hammer campaign. Can anyone help?
-
I am not quite sure what you mean - are you editing the Red Hammer campaign?
I did try to have a destroyed LST in a bay near a beach - problem was if it was on the beach it looked silly and if it was in the water (even if it was just next the the beach and in shallow water) it sunk out of sight.
-
perhaps he means how to destroy it using ordanance in real time by the player/AI. As most of us know, that LST can take a lot of hits for some reason, and they don't even register on some parts of the ship.
-
if you want to destroy it, using a script, without using loads of bombs, why not try a simple
LST_name setdamage 1
if you want some explosions, why not try
_x = getpos LST_name select 0
_y = getpos LST_name select 1
_dir = getdir LST_name
_i = 0
#loop
_r = random 10
_bang = "laserguidedbomb" camcreate [_x + (_r*sin(_dir)), _y + (1*cos(_dir)), 20]
~random 5
_i = _i + 1
?not (_i>=20):goto "loop"
exit
that will create 20 of flashpoint's most powerful explosives above the LST at random intervals at random points along the ship's length. i think :P