Quantcast

Jump to content

» «
Photo

[SA] Set timer to CLEO mission?

  • This topic is locked This topic is locked
3 replies to this topic
In45do
  • In45do

    Mack Pimp

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#1

Posted 14 July 2014 - 07:38 AM

In CLEO script (extension .cs) there is local variable known as 33@ as a timer. And then, how to set a timer in CLEO mission (extension .cm) ? I'm not sure to using opcode 014E as a timer, because it's said required global variable. :/


Jaybog
  • Jaybog

    DopeExpert

  • Members
  • Joined: 02 Dec 2007
  • None

#2

Posted 14 July 2014 - 05:47 PM

32@ 33@ works in every thread and is reserverd as internal timer, try to display the value of these vars and you will see that it's permantly counting ascendending in milliseconds
in practice you restore the var: 33@ = 0 then is it possible to check a specific time e.g. if 33@ > 5000 then do something
depending to your math coding skills can you make a timer like 014E with these vars
have also a look to sannybuilder forum: http://sannybuilder....opic.php?id=718

In45do
  • In45do

    Mack Pimp

  • Members
  • Joined: 15 Jan 2012
  • Indonesia

#3

Posted 15 July 2014 - 07:43 AM

I think you're right. Going to test it.


Silent
  • Silent

    Altering R* Vision™ since 2008

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#4

Posted 15 July 2014 - 10:23 AM

Yeah, it will work ;)

Calling it solved, somewhat.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users