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
Simple Scripting Problem
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Simple Scripting Problem

I suggest indenting it correctly to make it easier to read. Tab only inside a block, not the block itself.

Your last timer, the stoptimer one, has a semi-colon at the end of the constructor. Remove that. Also add a space between string and &in within the parameters.

void stoptimer(string &in asTimer)
{
    StopPlayerLookAt();
    SetPlayerActive(true);
}

By the way, you can merge the triggermusic and triggerlook functions. Since they happen at the same time, they might as well be in the same function. It's not required though.

(This post was last modified: 03-13-2014, 12:51 AM by Mudbill.)
03-13-2014, 12:47 AM
Find


Messages In This Thread
Simple Scripting Problem - by physcostealth - 03-13-2014, 12:12 AM
RE: Simple Scripting Problem - by Mudbill - 03-13-2014, 12:47 AM
RE: Simple Scripting Problem - by Daemian - 03-13-2014, 12:53 AM
RE: Simple Scripting Problem - by physcostealth - 03-13-2014, 01:05 AM
RE: Simple Scripting Problem - by Mudbill - 03-13-2014, 05:19 PM
RE: Simple Scripting Problem - by DnALANGE - 03-14-2014, 02:03 AM



Users browsing this thread: 1 Guest(s)