OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Commando on 09 Nov 2003, 12:56:42

Title: CTF with planes Flag falls into the sea!!!
Post by: Commando on 09 Nov 2003, 12:56:42
I got a small problem when i do capture the flag missions sometimes i love placing out some vehilces in them and i don't disciminate so i want all sorts of vehicles in the mission but it gets frustrating when one of the players steals a flag and gets shot down or crashes into the water and the flag is drowned and cannot be returned to the flag pole/base...
I haven't tried using the coc combat divers suits but i don't think you can sit inside a vehicle and take a flag :P anyways is there anyway to make some smaller changes to the mission file so that the flag would automatically be returned to base by setpos when its outside a certain trigger for a amount of time?
Title: Re:CTF with planes Flag falls into the sea!!!
Post by: Terox on 09 Nov 2003, 13:00:27
you need to add a loop that eventually sets flagowner to objnull if the flagowner dies after a certain amount of time, most use 120 seconds (2 minutes), then it will auto return. There are so  many different ctf systems out there.

If you check on here i posted a complete ctf system, scripts, no triggers which will do as u ask, spend a few minutes searching for it