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
More advance coding (for me)
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: More advance coding (for me)

(05-29-2011, 02:01 PM)X4anco Wrote: Thank-you but DAMN it 's hard to understand. Could you break it down please?

-X4anco

-_-

Player collides with ScriptArea_1.
AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", true, 1);

The Player Is now starting to look at ScriptArea_2 once the Player does collide with ScriptArea_1.
StartPlayerLookAt("ScriptArea_2", 2, 2, "");

3 timers are added, each going to the same function (Func02) carrying the information of the timer (T1, T2, T3). Once the timer runs out of time, the function is called for that one individual timer.

So when timer "T1" runs out of time, function "Func02" is called and it carries over the timer information represented by "Func02(string &in asTimer)".

Since "T1" is a string, a "line" of letters, x will equal it. So instead of saying "if (asTimer == "T1")" It will be saying "if(x == "T1")".

The player stops looking at ScriptArea_2. Then the next timer runs out of time (T2). Then it makes the player look at ScriptArea_3. When the last timer runs out of time (T3), the player stops looking at ScriptArea_3.

Is that good enough?

05-29-2011, 02:22 PM
Find


Messages In This Thread
More advance coding (for me) - by X4anco - 05-29-2011, 12:49 PM
RE: More advance coding (for me) - by Kyle - 05-29-2011, 01:39 PM
RE: More advance coding (for me) - by X4anco - 05-29-2011, 02:01 PM
RE: More advance coding (for me) - by Kyle - 05-29-2011, 02:22 PM



Users browsing this thread: 3 Guest(s)