Home   Help Search Login Register  

Author Topic: Ending a Deathmatch/Mp Mission - Time limit/Score Limit  (Read 2533 times)

0 Members and 1 Guest are viewing this topic.

Offline YoMma

  • Members
  • *
  • I'm Always Watching...
I have established the time and score limit options in the Description.ext but I cannot for the life of me remember how to actually make the mission execute this?

Example, the default time limit is 20 minutes at mission select, but the mission doesn't actually end. Presumably I need a trigger that takes how long was specified and then activates but I have no clue on the syntax etc for this trigger so was wondering if someone can help me out so I can actually make my DM map end! :P
"Sir! They're Shooting At Us!!!"
"Well Shoot Back!"
--Blackhawk Down

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: Ending a Deathmatch/Mp Mission - Time limit/Score Limit
« Reply #1 on: 20 Jun 2009, 18:19:47 »
Code: (condition set for 20 minutes into the mission in real time) [Select]
time > (20 * 60)
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)

Offline Gaia

  • Members
  • *
  • Bohemia Interactive Senior Game Designer
    • My personal webpage (only in Czech)
Re: Ending a Deathmatch/Mp Mission - Time limit/Score Limit
« Reply #2 on: 22 Jun 2009, 16:07:08 »
Alternative solution:

init.sqf
Code: [Select]
estimatedtimeleft param1;param1 is duration in seconds. You can either set it by yourself or get it from description.ext.

Condition of End1 trigger
Code: [Select]
serverTime > estimatedEndServerTime
Copied from BI Forum.