OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Homefry31464 on 11 Oct 2003, 00:13:19
-
Some scripts that would really help me making a mission, and I am sure some other mission makers could use them as well.
1. Control Parachute: In real life, I believe all parachutes are somewhat controllable. Is it possible to maybe allow the player to run a script via the action menu, click (preferrably on screen, but on the map would be okay), then drift towards it. He wouldn't have to land there exactly, just near it.
2. Ripped or trapped parachute. A script to make the parachute spin out of control and drop the player fast, but not kill the player while it is in the air.
3. Some sort of script that allows an A-10 with an LGB to target all of the AAA systems in an area. OR..., a script that makes an A-10 to pick one target of multiple targets, then attack that gamelogic or invisible object in a certain area.
4. Sparks. I am not sure if this is possible, so I come to you, the guru's. When a bullet hits a specified building (a metal one, or even the side of a vehicle, spark instead of forming that brown puff of particles.)
-
1. The controllable parachute could be done with some small scripts that detected if the player was in a parachute, and if he was, would allow him to pull "toggles" i.e. use setvelocity bumps to move the parachute.
2. Spinning = setdir, falling can be done by ramming you downwards with good old setvelocity.
3. Make an array of all AAA units, then have the A-10 attack the closest vehicle.
-
For #3, I meant it be random. But I may just do that.
-
A new one. Addaction something like "Insertion", then click on the map. The helicopter you were in would fly there, drop you off, then land at a marker somewhere.
-
Re: "Insertion" Post
Two scripts ;D.
;Designator script
hint "Select the location for paradrop."
onmapsingleclick {[_pos,_units,_shift,_alt] exec "dump.sqs"}
exit
;Paradrops troops
_pos = _this select 0
_dumper = vehicle player
?(_dumper == player): goto "exit"
_dumplogic = "logic" createvehicle _pos
#movealong
_dumper domove _pos
@_dumper distance _dumplogic <= 350
#primary
player action ["eject",_dumper]
_dumplogic setpos getmarkerpos "safemkr"
chopper domove getmarkerpos "safemkr"
@_dumper distance _dumplogic <= 350
_dumper land "land"
deletevehicle _dumplogic
#exit
exit
-
Wow, thanks a bundle.
-
I'm not sure about the syntax, I haven't tested this script.