Drill, Exposy, Particles :( - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Drill, Exposy, Particles :( (/thread-26469.html) Pages:
1
2
|
Drill, Exposy, Particles :( - Amnesiaplayer - 09-29-2014 Hello All!!! I'm making a (big) custom story... and i want EVERYTHING perfectly... so... Detailed everything... so i want this.. 2 exposy barrels... put a drill inside and then 2 Particles (activated) and you can put your bucket n ground (there is splash particle) so you can get the exposy... don't think that i don't know everything xD i learned most parts of scripting... but got some questions... do i need a script to make a Particle de-activated ?! because if i erase the Checkbox in Active it is de-activated in level editor.. but in-game it is still there :S so how can i do this ? i found something about this... DestroyParticleSystem("ps3_"+GetLocalVarString("WhatEpoxyEffect")); ? is this possible... *for the beginning of the map* and this after i put the drill inside CreateParticleSystemAtEntity("ps4_"+GetLocalVarString("WhatEpoxyEffect"), "ps_liquid_epoxy_drip.ps", asTimer+"_area_1", true); PlaySoundAtEntity("s4_"+GetLocalVarString("WhatEpoxyEffect"), "12_epoxy_drip", asTimer+"_area_1", 1, true); i already put the PArticles self... but i really don't know :S can someone help me ( and i will ask sometimes other questions in this thread about the 2 barrels and drill and other things ) EDIT: and how can i use the Drill Animation? RE: Drill, Exposy, Particles :( - FlawlessHappiness - 09-30-2014 Particle systems in a script: Use this website: https://wiki.frictionalgames.com/doku.php?id=hpl2/amnesia/script_functions Use Ctrl+F or Cmd+F to search for whatever you want. I searched for ParticleSystem and found exactly what i needed. PHP Code: CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS); For the drill, search on this forum. I searched "Drill" and found this: https://www.frictionalgames.com/forum/search.php?action=results&sid=74216101b0f6e228379a57b9c53afd1d&sortby=lastpost&order=desc RE: Drill, Exposy, Particles :( - Amnesiaplayer - 09-30-2014 Thans... i should use everything since i didn't know the Ctrl-f button to find something in the Engien script things... But can i de-activate a particle system?! and activate them?? because i placed my 2 particles somewhere... and it is a little biy Difficult to CREATE a particle with script.. (the way , just more detailed) RE: Drill, Exposy, Particles :( - FlawlessHappiness - 09-30-2014 No. You can create on at an area. And then destroy it. Then create a new one. Then destroy it. RE: Drill, Exposy, Particles :( - Amnesiaplayer - 09-30-2014 Okey. Now it's really difficult ;( how can i rotate the particle system on Good thing and i want the SPLASH particle to... for the ground... do i need to place an area on the place where i want/?? RE: Drill, Exposy, Particles :( - Mudbill - 09-30-2014 Place a script area where you want the particle to appear. It will spawn in the center of it. Rotate the area as you want. In the script you simply call the Create script when you want it to appear. When you want it to disappear, call the Destroy script. You can look at particles in the Particle Editor. Once you have found the one you want to use, make note of the file name, then input it in the Create line. PHP Code: CreateParticleSystemAtEntity("particle", "ps_file.ps", "AreaName", false); PHP Code: DestroyParticleSystem("particle"); RE: Drill, Exposy, Particles :( - Amnesiaplayer - 09-30-2014 Thanks but i have the script already CreateParticleSystemAtEntity("acid_stream", "ps_liquid_epoxy.ps", "Particle", false); it worked but the problem is... i can't change the color of the particle... RE: Drill, Exposy, Particles :( - Neelke - 09-30-2014 Then you have to make a custom particle. RE: Drill, Exposy, Particles :( - Amnesiaplayer - 09-30-2014 Ow.. Nevermind then :S but i have another problem... void TimerRotateDrill(string &in asTimer) { RotatePropToSpeed("DrillInside", 4, 2, 3, 0, 0, false, "drill_lookat"); StopPlayerLookAt(); AddTimer("TimerPatricleDrill", 3, "TimerPatricleDrill"); } void TimerPatricleDrill(string &in asTimer) { CreateParticleSystemAtEntity("acid_stream", "ps_liquid_epoxy.ps", "Particle", false); CreateParticleSystemAtEntity("acid_stream", "ps_liquid_epoxy_splatt.ps", "Particle2", false); StopPropMovement("hand_drill_static_1"); SetEntityActive("hand_drill_static_1", false); SetEntityActive("container_lookat", true); } I want that the CreatP : CreateParticleSystemAtEntity("acid_stream", "ps_liquid_epoxy_splatt.ps", "Particle2", false); will hapen AFTER a sec (sev after the CreateParticleSystemAtEntity("acid_stream", "ps_liquid_epoxy_splatt.ps", "Particle1", false); Happened) And there are 3 seconds... (the drill rotates)after 3 sec the particles load... both i want that the second one load after 1 sec ... or should i do this?! the drill is rotating a sec of 5 and then it STOPS (and it's a Pick-able Item) then you pick up the drill and the water things come... So yes.. can someone help me with this :S RE: Drill, Exposy, Particles :( - FlawlessHappiness - 09-30-2014 (09-30-2014, 03:44 PM)Neelke Wrote: Then you have to make a custom particle. You don't have to. Just use: PHP Code: CreateParticleSystemAtEntityExt(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS, float afR, float afG, float afB, float afA, bool abFadeAtDistance, float afFadeMinEnd, float afFadeMinStart, float afFadeMaxStart, float afFadeMaxEnd); |