OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: muntahunta on 23 Oct 2004, 14:02:51
-
ok, i decided to make a team king of the hill because i havnt seen many about, but im stuck with the score because usually i just make ctf/c&h/DM.
anyone know of a script out there that i could use for a king of the hill
when a team is in the zone, they get 1 point for every 10 seconds they are in the zone, but ive never done anything like that before... any ideas?
-
I don't know if you have tried it yet, but, there is a tutorial in the Editors Depot:
Make a King of the Hill mission in MP by granQ
If you haven't tried it maybe it will have a few pointers for you.
Planck
-
yea i checked it out, but aparently the score.sqs is missing, which is what i need lol
thanks for the tip anyways
-
surely theres a script of some sort, or someone that can help me out there, please, any ideas?
-
this is what I used on my koth mission, you need to have several triggers running to detect who is and who is not present. This works for a 3 sided mission, east/west/and res
;________________________
;::::::::::::::::::::::::
;
;Place Documentation here
;author USI Studios
;created 10/29/03 3:42:11 PM
;________________________
;::::::::::::::::::::::::
?!(local server):goto "end"
_westscore=0
_eastscore=0
_resscore=0
#start
?westhere and !easthere and !reshere:goto "westscore"
?easthere and !westhere and !reshere:goto "eastscore"
?reshere and !easthere and !westhere:goto "resscore"
?westhere and easthere and reshere:goto "start"
?!westhere and !easthere and !reshere:goto "start"
?westhere and easthere or reshere:goto "start"
?easthere and westhere or reshere:goto "start"
?reshere and westhere or reshere:goto "start"
goto "start"
#westscore
_westscore=_westscore+1
~5
titletext[format["MISSION STATUS:\nNATO %1 <-> Soviets %2 <-> Resistance %3",_westscore,_eastscore,_resscore],"PLAIN DOWN"]
goto "start"
#eastscore
_eastscore=_eastscore+1
~5
titletext[format["MISSION STATUS:\nNATO %1 <-> Soviets %2 <-> Resistance %3",_westscore,_eastscore,_resscore],"PLAIN DOWN"]
goto "start"
#resscore
_resscore=_resscore+1
~5
titletext[format["MISSION STATUS:\nNATO %1 <-> Soviets %2 <-> Resistance %3",_westscore,_eastscore,_resscore],"PLAIN DOWN"]
goto "start"
#end
exit
-
cool, thanks man, ill be sure to try it out
thanks alot for the help, much appreciated