ThePlatoon.com
September 06, 2008, 02:26:11 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: WELCOME! As you can see we have changed forum systems, for good I hope.
 
  Home   Forum   Help Search Calendar Login Register  
  Shop Gallery  
Pages: [1]   Go Down
  Print  
Author Topic: GR:AW SP Scripting 6  (Read 669 times)
0 Members and 1 Guest are viewing this topic.
Wolfsong
One with nature...
Administrator
Full Member
*****

Rep: 6
Offline Offline

Posts: 497
1513.00 credits

View Inventory
Send Money to Wolfsong

75672554 WolfsongSwe@Hotmail.com
View Profile WWW
« on: November 29, 2006, 08:53:37 AM »

There is no timer in GR:AW scripting... or is there?

Of course there is. And it easy and works just the same as in GR1 (besides that it's not called timer).

Quote

Timer Scripting

All you need is 1 trigger and 2 events.
Or, if want to be able to stop the timer, 2 triggers and 3 events.


Create whatever triggers you want. Their types are not important for the timer function. Just set them to run the start and stop events below.


Create an event that run when the trigger to start the timer is activated.
Add a "TriggerEvent" element that points to the event that should run when the timer runs out.
Set the start_time on the event trigger inside to what you want the timer lenght to be.
[color="RoyalBlue"]


[/color]

Create an event that run when the trigger to prevent the timer from completing is activated.
Add a "BreakEvent" element that can stop the timer set above.
[color="RoyalBlue"]


[/color]

Create an event that runs when the timer expires.
Add any elements that you want to run after the timer runs out.
[color="RoyalBlue"]
[/color]

And it's done.

Basicly all you have to do is use the start_time attribute as a timer. Wink
Logged

---===[ STAFF ]===---
Technical Artist at Grin Inc.
Current Projects:
- Bionic Commando (PC/PS3/360)
- Bionic Commando - Rearmed (PC/PSN/XBL)
- Wanted (PC/PS3/360)
- "Secret Project"
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
SMF Theme © Gaia
Valid XHTML 1.0! Valid CSS!