Jump to content
Sign in to follow this  
muzzmuzz

Respawning

Recommended Posts

Hi All

I am fairly new to the Flashpoint editor but I know the basics and have created a few simple single player mission.

I recently played the Team Capture the Flag game in multiplayer. I decided to expand on that a bit and put more enemies and units etc on a map.

I was wonder if its possible to make tanks, aircraft and all over non "MEN" units respawn with full crews/ammo like you can easily with Soldiers?

Also is there a way to make the computer AI hunt other AI without using the "Waypoints" feature or is that beyond the AI of Flashpoint?

Please help!

Share this post


Link to post
Share on other sites

I am now using this script by Doolittle "BUT" when my tanks etc respawn the crew is outside and they don't move! What amendments are needed:

;by Doolittle

_obj = _this select 0

?not local Server : exit

_vdelay = 150

?count _this > 1 : _vdelay = _this select 1

_air = ["Cobra", "Cessna", "A10LGB", "A10", "AH64", "Kamov", "Mi17", "Mi24", "OH58", "Su25", "UH60", "UH60MG"]

_armored = ["BMPRes", "BMP2", "BMP", "BoatE", "BRDM", "CarrierW", "M2StaticMGE", "M2StaticMG", "M113", "M1Abrams", "Bradley", "M60", "BoatW", "ZSU", "T55G", "T72Res", "T72", "T80Res", "T80", "Vulcan"]

_car = ["Truck5tOpen", "Truck5t", "Kolo", "Bus", "SkodaBlue", "SkodaGreen", "SkodaRed", "Skoda", "Mini", "HMMWV", "GJeep", "JeepPolice", "JeepMG", "Jeep", "Jawa", "TruckV3SCivil", "TruckV3SG", "Scud", "RapidY", "Rapid", "Trabant", "Tractor", "UAZG", "UAZ", "Ural"]

_support = ["Truck5tReammo", "BMPAmbul", "M113Ambul", "TruckV3SGReammo", "TruckV3SGRefuel", "TruckV3SGRepair", "Truck5tRefuel", "Truck5tRepair", "SGUAZG", "UralReammo", "UralRefuel", "UralRepair"]

_vehicle = _air + _support + _armored + _car

_pos = getPos _obj

_dir = getDir _obj

_i = 0

_c = count _vehicle

_type = 0

#count

?_vehicle select _i countType [_obj] != 0 : _type = _i; _i = count _vehicle

_i = _i + 1

?_i < _c : goto "count"

#init

_t = 0

#alive

~1

?not alive _obj : _delay = _vdelay; goto "notalive"

?fuel _obj == 1 : goto "init"

?count crew _obj != 0 : goto "init"

?_t == 0 : _t = _time + vdelay

?_t > _time : goto "alive"

#notalive

~_delay

deleteVehicle _obj

~1

_obj = _vehicle select _type createVehicle _pos

_obj setDir _dir

goto "init"

PLEASE HELP!

Share this post


Link to post
Share on other sites

Actually that doesn´t work on 1.90 neither.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×