Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Directional particle system
Author Message
Adrianis Offline
Senior Member

Posts: 544
Joined: Feb 2012
Reputation: 25
Post: #1
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
Find all posts by this user Quote this message in a reply
Obliviator27 Offline
Posting Freak

Posts: 801
Joined: Jul 2011
Reputation: 65
Post: #2
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
Find all posts by this user Quote this message in a reply
Adrianis Offline
Senior Member

Posts: 544
Joined: Feb 2012
Reputation: 25
Post: #3
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
Find all posts by this user Quote this message in a reply
Apfel Offline
Junior Member

Posts: 7
Joined: Jun 2011
Reputation: 0
Post: #4
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
Find all posts by this user Quote this message in a reply
Strembitsky Offline
Member

Posts: 243
Joined: Feb 2012
Reputation: 3
Post: #5
RE: Directional particle system
No, you cannot do that.

The Nightmares v1.0 - Dreadful Fires WIP
03-09-2012 04:18 AM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,186
Joined: Mar 2011
Reputation: 56
Post: #6
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
Find all posts by this user Quote this message in a reply
Adrianis Offline
Senior Member

Posts: 544
Joined: Feb 2012
Reputation: 25
Post: #7
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
Find all posts by this user Quote this message in a reply
MrBigzy Offline
Senior Member

Posts: 616
Joined: Mar 2011
Reputation: 8
Post: #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
Find all posts by this user Quote this message in a reply
Adrianis Offline
Senior Member

Posts: 544
Joined: Feb 2012
Reputation: 25
Post: #9
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
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)