OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SafetyCatch on 11 Sep 2002, 22:47:57
-
i want to make a good beach landing level, ive got the machine gunners firing randomly at the sea and at the tank traps but how can i make it so big explosoins go off in the sea and make a splash
i mean....is it possible ???
thanks :)
safety
-
I think it could be done by using the drop command in resistance.
Im not really that good at it so anyone who is could help you out. From what i've done it doesn't take that long... :-*
8)PEACE
-
I don't know if this would work, but get hold of an artillery script and have it target the sea. If you make the shells explode a couple of metres below the surface that might work better.
-
But that wouldn't make splashes. Im sure someone can do this. If not, then ill try it when i get home tonight. :)
8)PEACE
-
Ok, i can only give you the water effect at the moment:
_Obj = _this select 0
~0.3
drop ["cl_water", "", "Billboard", 1, 0.7, [-0.1,-0.1,3], [1, 0, 3], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [0 ], 0.01, 0.15, "", "bubble.sqs", _obj]
drop ["cl_water", "", "Billboard", 1, 0.7, [1,-1,2], [1, 0, 3], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [0 ], 0.01, 0.15, "", "bubble.sqs", _obj]
drop ["cl_water", "", "Billboard", 1, 0.7, [-1, 1,1], [1, 0, 3], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [ 0], 0.01, 0.15, "", "bubble.sqs", _obj]
drop ["cl_water", "", "Billboard", 1, 0.7, [0, 0,2], [1, 0, 3], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [ 0], 0.01, 0.15, "", "bubble.sqs", _obj]
drop ["cl_water", "", "Billboard", 1, 0.7, [0, 0,2], [1, 0, 0], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [ 0], 0.01, 0.15, "", "bubble.sqs", _obj]
drop ["cl_water", "", "Billboard", 1, 0.7, [-2, -2 ,1], [1, 0, 3], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [0 ], 0.01, 0.15, "", "bubble.sqs", _obj]
drop ["cl_water", "", "Billboard", 1, 0.7, [2,2,2], [1, 0, 0], 0, 1, 0.001, 0.1, [1, random (5) + 4], [[1, 1, 1, 1], [0.9, 0.9, 1, 0.2]], [0 ], 0.01, 0.15, "", "bubble.sqs", _obj]
Put this into a script, name it splashS.sqs, then call it using [objectname] exec "splashS.sqs".
Make another script name splash.sqs and in it put this:
_pos = _this
_barvaR = 1
_barvaG = 1
_barvaB = 1
drop ["cl_basic", "", "Billboard", 1, 0.3, _pos, [0, 0, 0], 1, 0.28, 0.2, 0.1, [0.1,0.5], [[_barvaR,_barvaG,_barvaB,0.2],[_barvaR,_barvaG,_barvaB,0]], [0 ], 0.1, 0.1, "", "", ""]
The problem is that i don't think that itll get the position of a camcreated shell, so you may just have to position a gamelogic or two around and use that as the source for the splash.
This is a modified version of Vektorboson's fountain script.
8)PEACE
-
thanks :)
ill try that script tommorow