Author Topic: Best way to define the PC object in a script  (Read 461 times)

Legacy_UnrealJedi

  • Full Member
  • ***
  • Posts: 226
  • Karma: +0/-0
Best way to define the PC object in a script
« Reply #15 on: December 13, 2013, 07:06:43 pm »


               Thanks. It's nice to know I at least had my coding right. But as they say, the devil is in the details. :-) Thanks again!
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Best way to define the PC object in a script
« Reply #16 on: December 13, 2013, 07:19:24 pm »


               actually if you are getting a local object set on the module, you also need the label you are using for that object. Line 6 looks like some of it was not included.
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Best way to define the PC object in a script
« Reply #17 on: December 17, 2013, 12:44:18 am »


               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 .