Home   Help Search Login Register  

Author Topic: Real Time 0.1 (MP only)  (Read 1586 times)

0 Members and 1 Guest are viewing this topic.

DBR_ONIX

  • Guest
Real Time 0.1 (MP only)
« on: 06 Apr 2005, 12:39:10 »
Very simple script, only works in Multiplayer, though..
To test
1) Unzip the file, make sure you put it in User/Username/MPMissions/

2) Make a LAN or internet game, load any mission.. If the realtime script if first loaded, it will not work that time.. Abort that mission.

3) Load Real Time (It's on Desert Island).
When you get to breifing, it say time via player sidechat, remove that line if you want.

Basicly : Put in MPMissions folder, load random mission, abort it, load Real Time again, and it will work..
If anyone knows why this is, it'd be good to know..

Only 2 problems,
1) The first -mission-loaded problem, where mission start returns 0,0,0,0,0..
2) It doesn't display ending 0's, small problem, that oesn't affect code, the sidechat is just to deomstate the script working

Oh yeh, did I mention? The script sets mission time to current system time... ::)
- Ben
« Last Edit: 06 Apr 2005, 12:42:44 by DBR_ONIX »

HuNtA

  • Guest
Re:Real Time 0.1 (MP only)
« Reply #1 on: 06 Apr 2005, 12:45:19 »
why yes... this script looks great... ill download it straight away

DBR_ONIX

  • Guest
Re:Real Time 0.1 (MP only)
« Reply #2 on: 06 Apr 2005, 12:46:29 »
The cheque is in the post.. :P
Hmm, the script could be added to to set OFP to correct date/year.. Hmm
WHen I get time I'll do that.. [Edit start}
Well it seems I made time..
Code: [Select]
_hours = missionstart select 3
_minutes = missionstart select 4
_date = missionstart select 2
_yearcorrect = missionstart select 1
_datecorrect=_date*24
_datecorrect=_datecorrect-24

_tts=_hours+(_minutes/60)+_datecorrect

player sidechat FORMAT ["The time is %1:%2, date correction %1",_hours,_minutes,_datecorrect]
skiptime _tts

Not tested yet, might as well do that now..
Works! Set the date to 1st of something. I'll work out the year correct thing another time
{edit]

- Ben
« Last Edit: 06 Apr 2005, 13:10:42 by DBR_ONIX »