Particles *directly* above the head

Started by Meowmere on

Topic category: Advanced modding

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Particles *directly* above the head

Im making TF2 style unusual armors, and particles work how I want them to, take of the helm, they stop appearing. But! They are really wierd, they're always a few blocks off, I got the Y coordinate perfectly figured out, but X and Z are giving me issues, what would be the XYZ for directly above the player (center of above head)

Active 1 year ago
Joined Aug 2013
Points:
1163

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
What values do you used?
Sat, 09/24/2016 - 15:33

What values do you used?

Active 1 year ago
Joined Aug 2013
Points:
1163

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
RE:What values do you used?
Sat, 09/24/2016 - 15:34

@#1 * did you use

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
I used 1, 2, 1
Sat, 09/24/2016 - 16:16

I used 1, 2, 1

that gives me a a particle one block in front and one block to the left.

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Left 2 blocks, forward one
Sat, 09/24/2016 - 17:05

Left 2 blocks, forward one block. That's what I need.

-1, 2, -1, is the closest. I just need it left 2 blocks and forward one

Active 1 year ago
Joined Aug 2013
Points:
1163

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
Use coords of the player -->
Sat, 09/24/2016 - 17:34

Use coords of the player --> player.posX and player.posZ. (It is possible that your "player" variable has different name like "entityPlayer")

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
wouldnt that be under or in
Sat, 09/24/2016 - 17:42

wouldnt that be under or in the middle of the player though? Also I think you have to use coordinates. Im using j i k + the respective coordinate

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
RE:Use coords of the player -->
Sat, 09/24/2016 - 17:53

@#4

Can you help me out, I just realized this isnt GML anymore... Sorry, forgot xD.

How would I make Player.posX able to work? MCreator says thats invalid.

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Okay, I set x and z to
Sat, 09/24/2016 - 18:03

Okay, I set x and z to nothing, and I just barely need it to go one block left, and like a quarter of one back.

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Apparantly the origin for X
Sat, 09/24/2016 - 18:47

Apparantly the origin for X and Z are relative to the player, but they are off a little.

Active 8 years ago
Joined Sep 2016
Points:
713

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Well, I figured it out
Sat, 09/24/2016 - 18:55

Well, I figured it out

+0.5

+2

+0.5

 

it snaps to the block the player is on, so if you're in between a block it wont follow you untill you move into the next one, not that noticable