Think of the semi colon as a statement. variablex = something; (end of statement).
Then you have types of statements if then else if etc...
So the semi-colon would come after the implied then:
if x = y
(then Implied) Do this;
(else implied) Do nothing either return; or look for another condition if script is too continue.
You should check out Jaspers newb corner.
Also line 6 should probably be ObjectSelf.
You should also familarise yourself with other ways to denote tthe PC such as
GetFirstPC, get nearest, etc...
Modifié par ffbj, 17 décembre 2013 - 12:47 .