Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Sequential Looping Script
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Sequential Looping Script

You're using the for-loop in an interesting way.

I'm not sure what you were picturing, but I would do something like

PHP Code: (Select All)
void CreditsRoll(string &in asTimer)
{
AddLocalVarInt("Roll"1//Add 1 to a variable, so it keeps rising.

SetMessage("Messages""credits_"+GetLocalVarInt("Roll"), 5//Show the message, with the added variable.

if(GetLocalVarInt("Roll") < 5//If less than 5, add another timer
{
AddTimer(""5"CreditsRoll");
}


EDIT: Forgot a category in SetMessage

Trying is the first step to success.
(This post was last modified: 08-22-2015, 12:10 PM by FlawlessHappiness.)
08-22-2015, 12:07 PM
Find


Messages In This Thread
Sequential Looping Script - by AGP - 08-22-2015, 11:43 AM
RE: Sequential Looping Script - by FlawlessHappiness - 08-22-2015, 12:07 PM
RE: Sequential Looping Script - by Mudbill - 08-22-2015, 12:38 PM
RE: Sequential Looping Script - by AGP - 08-22-2015, 07:07 PM



Users browsing this thread: 1 Guest(s)