Frictional Games Forum (read-only)

Full Version: Drill, Exposy, Particles :(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello All!!!

I'm making a (big) custom story...
and i want EVERYTHING perfectly... so... Detailed Big Grin 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?
Particle systems in a script:

Use this website:
https://wiki.frictionalgames.com/doku.ph..._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(stringasPSNamestringasPSFilestringasEntitybool abSavePS);

DestroyParticleSystem(stringasName); 


For the drill, search on this forum. I searched "Drill" and found this:
https://www.frictionalgames.com/forum/se...order=desc
Thans... i should use everything Big Grin 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)
No.

You can create on at an area. And then destroy it.
Then create a new one. Then destroy it.
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/??
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); 
This is an example. It creates the ps_file.ps particle at AreaName and calls it particle. The last parameters is just whether to save its state. Once you want this particle gone, do:
PHP Code:
DestroyParticleSystem("particle"); 
This time you only need the name you put before.
Thanks Big Grin 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... Sad
Then you have to make a custom particle.
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
(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(stringasPSNamestringasPSFilestringasEntitybool abSavePSfloat afRfloat afGfloat afBfloat afAbool abFadeAtDistancefloat afFadeMinEndfloat afFadeMinStartfloat afFadeMaxStartfloat afFadeMaxEnd); 
Pages: 1 2