Home   Help Search Login Register  

Author Topic: hoz timer question if return value = 0 then obj completed :)  (Read 2395 times)

0 Members and 1 Guest are viewing this topic.

Offline Garbol87

  • Members
  • *
Hi, first of all I don't know if i'm posting in the right section, if so then sorry about that...

I have a bit of a problem (probably not a big one) but whit my limited skills at the moment it's pretty big for me.

I'am trying to make an objective such as for example retrieving data form a satelite or so. The problem that I have is how do I find if the timers reaches zero and it completes the objective?

A lot of crashes and script errors. So I just couldn't think of a better place to ask such a question than this forum (for you guys have been very helpfull in the past). Becouse the image is worth more than 1000 words here is a picture of what i'm trying to do. Basacliy if the unit named "TechSepcialist" gets near the "Satelite" I want to start the timer that would simulate data download form it for example, 1 minute.

http://s701.photobucket.com/albums/ww13/garbol87/Armed%20Assault/?action=view&current=arma22009-11-2811-07-09-44.jpg

 But he needs to be very colse to the satelite if he gets too far while the data is in tranist he will need to do it all over again. But if it success and timer reaches zero then the objective is completed (MP comaptible) and timer deactivated.

I will be very grateful for any help.
Thanks in advance.
« Last Edit: 28 Nov 2009, 11:22:30 by Garbol87 »

Offline i0n0s

  • Moderator
  • *****
Re: hoz timer question if return value = 0 then obj completed :)
« Reply #1 on: 28 Nov 2009, 13:37:14 »
First:
(local player) and isServer will work only in singleplayer or hosted games for the hoster.
Then HOZ script will give some feedback. This feedback should be visible on every computer, so his script has to run everywhere.

Second:
As far as I can see, you have to check manual if his script was successful.