OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: YoMma on 20 Jun 2009, 17:14:48

Title: Ending a Deathmatch/Mp Mission - Time limit/Score Limit
Post by: YoMma on 20 Jun 2009, 17:14:48
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
Title: Re: Ending a Deathmatch/Mp Mission - Time limit/Score Limit
Post by: Spooner on 20 Jun 2009, 18:19:47
Code: (condition set for 20 minutes into the mission in real time) [Select]
time > (20 * 60)
Title: Re: Ending a Deathmatch/Mp Mission - Time limit/Score Limit
Post by: Gaia 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 (http://community.bistudio.com/wiki/Description.ext#Multiplayer).

Condition of End1 trigger
Code: [Select]
serverTime > estimatedEndServerTime
Copied from BI Forum (http://forums.bistudio.com/showthread.php?p=1320042#post1320042).