The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Creating Particle, setting different axis?
FoodOnCrack Offline
Junior Member

Posts: 5
Threads: 3
Joined: Feb 2014
Reputation: 0
#1
Wink  Creating Particle, setting different axis?

Hellooo! Tongue

I am working busy on my second custom story (i threw away my first one) And i want to create a particle system and a sound at an entity when i enter a specific area. It turned out good the first time without errors, but the unfortunate thing, the orientation of the particle system is incorrect. I created a ps_dust_push at a level door but it is 90 degrees off.

Here is my code:

PHP Code: (Select All)
void OnStart()
{
// Area Player Collide Scripts
    
AddEntityCollideCallback("Player""ScriptArea_1",  "BlowWind_1"true1);
    
AddEntityCollideCallback("Player""ScriptArea_2",  "BlowWind_2"true1);
}


void BlowWind_2(string &in asParentstring &in asChildint alState
{
    
CreateParticleSystemAtEntity("Wind_2""ps_dust_push.ps""level_dungeon_1"false);
    
PlaySoundAtEntity("""guardian_ontop.snt""level_dungeon_1"0false);
    
GiveSanityDamage(5true);



Is there another way of scripting this or doing something different in the level editor? Thank you!

PS. I'm looking for Alpha/Beta testers to play my custom story Smile
(This post was last modified: 02-23-2014, 07:52 PM by FoodOnCrack.)
02-23-2014, 07:50 PM
Find


Messages In This Thread
Creating Particle, setting different axis? - by FoodOnCrack - 02-23-2014, 07:50 PM



Users browsing this thread: 1 Guest(s)