Code about CreateRotator ect.

Everything about mods can be found here.

Moderator: Morax

Code about CreateRotator ect.

Postby warpie » 02 Sep 2015, 00:02

Hello there all

I am looking and change some stuff to learn about code ect
Now, iam bussy with a power generator T3 and give a little change in de model
I see a code, but don't found some explanation what the coordinates
0 , 15 80 = x y z ?
what means nil and the 'y' ect?

Code: Select all
CreateRotator(self, 'Orb', 'y', nil, 0, 15, 80 + Random(0, 20))


have somebody explanation for this?
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie

Re: Code about CreateRotator ect.

Postby nine2 » 02 Sep 2015, 01:19

nil means null, which means nothing. They are passing through nothing for one of the arguments to that CreateRotator method

I don't know what CreateRotator does ... so I don't know what the 'y' is etc... you should hunt down the method in the code and see what it does. You should be able to see what it does with the 'y' value
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Code about CreateRotator ect.

Postby warpie » 03 Sep 2015, 22:02

Give some info:

I have temporarily interrupted an line so I can turn off certain effects by using #
on this line :
Code: Select all
SEnergyCreationUnit.OnStopBeingBuilt(self, builder, layer)

So the glowing effects after the building stop won't work

Now I change the y to x and z, to test if its an x-y-z axis
as I thought, the Y is from the x-y-z axis
Orb is the object name from out the scm.file

nill : I have not changed yet
and the numbers changed with the effect and that changed some little things

I will update this later with the new things :D
User avatar
warpie
Crusader
 
Posts: 37
Joined: 08 Aug 2015, 17:33
Has liked: 2 times
Been liked: 2 times
FAF User Name: warpie


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest