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
Teleporting items & Vaporizing items
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#10
RE: Teleporting items & Vaporizing items

(10-21-2012, 06:49 PM)beecake Wrote: you can always use the ""+something Smile

I sometimes do this: AddTimer("Timer_"+RandInt(1, 3), 5, "Timer");

void Timer(string &in asTimer)
{
if(asTimer == "Timer_1")
{

}


if(asTimer == "Timer_2")
{

}


if(asTimer == "Timer_3")
{

}
}

understand?
well i got the "For" command
but this confuses me.. :/
The "Timer_"+RandInt(1, 3)" makes 3 timers with names : Timer_1,Timer_2 and Timer_3 ?
And what exactly you compare in the "If" commands?

[Image: 2H1Mc.jpg]
10-21-2012, 09:46 PM
Find


Messages In This Thread
Teleporting items & Vaporizing items - by ZodiaC - 10-21-2012, 01:46 AM
RE: Teleporting items & Vaporizing items - by ZodiaC - 10-21-2012, 09:46 PM



Users browsing this thread: 1 Guest(s)