Code:
function Update(self)
if self:IsPlayerControlled() == true then
TimerMan.TimeScale = 0.1;
else
TimerMan.TimeScale = 1;
end
end
Right, this should work.
IsPlayerControlled is a function with no arguments (arguments go inside parentheses). Since it's a function attached to self, you use a colon, not a period. Periods are for attributes, ie timerman's timescale.
You don't need semicolons at the end of logic statements, only things like TimerMan.TimeScale.
If then else elseif end. That's the chain for if statements; if and else should be tabbed to the same line for syntax, and end should also be at the same level. Then you need an end for the function itself (function update self).