Jump to content


Photo

How to enable the Shroud Behavior after 10 mins?


Best Answer Charles Limoso, 11 January 2015 - 03:39 AM

Thank you man!! It come up working :)

Go to the full post


  • Please log in to reply
6 replies to this topic

#1 Charles Limoso

Charles Limoso
  • Members
  • 8 posts

Posted 06 January 2015 - 05:27 AM

 How can you enable the Shroud Behavior after playing 10 mins above in maps ?

 



#2 predator_bg

predator_bg

    The predator

  • Project Team
  • 2,417 posts
  • Location:Bulgaria
  • Projects:Contra

Posted 06 January 2015 - 04:32 PM

 How can you enable the Shroud Behavior after playing 10 mins above in maps ?

Is this for custom Skirmish maps? If yes, let's assume you are familiar with World Builder. You need to create two scripts like this:

 

1. First script will set a timer. Select "Seconds countdown timer -- set" (located in Timer script group) and modify values (should be 600).

2. Second script is the shroud action. Edit Script Conditions.

****IF****

Timer 'your timer name' has expired.

Now select the "Actions if true." tab. Edit that script. Click on "Map" script group, then "Shroud or Reveal" subgroup and choose "Shroud the entire map for a player." and edit the Player parameter.



#3 Charles Limoso

Charles Limoso
  • Members
  • 8 posts

Posted 07 January 2015 - 11:17 AM

I did that but the problem is when players try to use CIA Intelligence or Shroud Clearing Objects used by players the Script likes being disabled or I don't know what is causing the problem. By the way its all for the ZH Maps even the original maps. 



#4 predator_bg

predator_bg

    The predator

  • Project Team
  • 2,417 posts
  • Location:Bulgaria
  • Projects:Contra

Posted 08 January 2015 - 04:56 PM

I did that but the problem is when players try to use CIA Intelligence or Shroud Clearing Objects used by players the Script likes being disabled or I don't know what is causing the problem. By the way its all for the ZH Maps even the original maps. 

If you reveal the map once, the shroud will disappear. You can try to repeat the script every frame (or every 10 seconds if you wish the CIA Intelligence to be useful).



#5 Charles Limoso

Charles Limoso
  • Members
  • 8 posts

Posted 09 January 2015 - 08:37 AM

So I will remove the Deactivate upon success?



#6 predator_bg

predator_bg

    The predator

  • Project Team
  • 2,417 posts
  • Location:Bulgaria
  • Projects:Contra

Posted 09 January 2015 - 11:27 AM

So I will remove the Deactivate upon success?

Try this. If it doesn't work, add another timer to the first script (with your preferred frames or seconds). Then, in another script, IF Timer 'repeat script timer' has expired >> Enable script 'your second script'.



#7 Charles Limoso

Charles Limoso
  • Members
  • 8 posts

Posted 11 January 2015 - 03:39 AM   Best Answer

Thank you man!! It come up working :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users