Adrianis
Senior Member
Posts: 620
Threads: 6
Joined: Feb 2012
Reputation:
27
|
Directional particle system
I want a situation where, to give the impression of wind blowing down a corridor towards a player, I'm using ps_dust_push.ps, which blows dust in a certain direction
However, when I spawn this with the create particle system function, its default direction means its blowing in a -X direction, when I need it coming toward the player on the +Z.
Does anyone know of an easier way to do this than making a custom PS every time its needed in a specific direction?
|
|
03-08-2012, 09:17 PM |
|
Obliviator27
Posting Freak
Posts: 792
Threads: 10
Joined: Jul 2011
Reputation:
66
|
RE: Directional particle system
No way to do this other than making a custom particle. It's not difficult to figure out how to change directions.
|
|
03-08-2012, 09:34 PM |
|
Adrianis
Senior Member
Posts: 620
Threads: 6
Joined: Feb 2012
Reputation:
27
|
RE: Directional particle system
(03-08-2012, 09:34 PM)Obliviator27 Wrote: No way to do this other than making a custom particle. It's not difficult to figure out how to change directions. Damn, Ok thanks for your help mate
|
|
03-08-2012, 10:29 PM |
|
Apfel
Junior Member
Posts: 19
Threads: 3
Joined: Jun 2011
Reputation:
1
|
RE: Directional particle system
(03-08-2012, 09:17 PM)Adrianis Wrote: I want a situation where, to give the impression of wind blowing down a corridor towards a player, I'm using ps_dust_push.ps, which blows dust in a certain direction
However, when I spawn this with the create particle system function, its default direction means its blowing in a -X direction, when I need it coming toward the player on the +Z.
Does anyone know of an easier way to do this than making a custom PS every time its needed in a specific direction?
Well, I think you can just rotate the Area in which you want to create the particle system.
|
|
03-09-2012, 03:44 AM |
|
Strembitsky
Senior Member
Posts: 254
Threads: 37
Joined: Feb 2012
Reputation:
3
|
RE: Directional particle system
No, you cannot do that.
The Nightmares v1.0 - Dreadful Fires WIP
|
|
03-09-2012, 04:18 AM |
|
palistov
Posting Freak
Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation:
57
|
RE: Directional particle system
(03-09-2012, 04:18 AM)Strembitsky Wrote: No, you cannot do that.
Yes actually you can rotate areas to change the orientation of spawned particles. I've done it multiple times, and not for just particles. Anything spawned at a script area (with the exception of monsters, I believe) will spawn in the same orientation as its parent area. You just need to test it out in-game a few times to make sure you've got the area facing the proper way.
(This post was last modified: 03-09-2012, 07:12 AM by palistov.)
|
|
03-09-2012, 07:10 AM |
|
Adrianis
Senior Member
Posts: 620
Threads: 6
Joined: Feb 2012
Reputation:
27
|
RE: Directional particle system
(03-09-2012, 07:10 AM)palistov Wrote: (03-09-2012, 04:18 AM)Strembitsky Wrote: No, you cannot do that.
Yes actually you can rotate areas to change the orientation of spawned particles. I've done it multiple times, and not for just particles. Anything spawned at a script area (with the exception of monsters, I believe) will spawn in the same orientation as its parent area. You just need to test it out in-game a few times to make sure you've got the area facing the proper way. Sweet, does that mean you use the create particle system at entity function, but replase the string asEntity with an area name?
|
|
03-09-2012, 01:42 PM |
|
MrBigzy
Senior Member
Posts: 616
Threads: 18
Joined: Mar 2011
Reputation:
8
|
RE: Directional particle system
Not all particle systems can be rotated. In the particle editor, a particle system's "coord system" can be set to local or world. If set to world, it will be set in a specific direction and can't be rotated. You'll have to change it to local if the particle system isn't rotating in the editor.
AKA Rael
(This post was last modified: 03-09-2012, 01:49 PM by MrBigzy.)
|
|
03-09-2012, 01:48 PM |
|
Adrianis
Senior Member
Posts: 620
Threads: 6
Joined: Feb 2012
Reputation:
27
|
RE: Directional particle system
(03-09-2012, 01:42 PM)Adrianis Wrote: (03-09-2012, 07:10 AM)palistov Wrote: (03-09-2012, 04:18 AM)Strembitsky Wrote: No, you cannot do that.
Yes actually you can rotate areas to change the orientation of spawned particles. I've done it multiple times, and not for just particles. Anything spawned at a script area (with the exception of monsters, I believe) will spawn in the same orientation as its parent area. You just need to test it out in-game a few times to make sure you've got the area facing the proper way. Sweet, does that mean you use the create particle system at entity function, but replase the string asEntity with an area name? To answer my own question, yes you do. Thanks for your help Palistov
|
|
03-09-2012, 01:59 PM |
|
|