Frictional Games Forum (read-only)

Full Version: Portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(10-28-2014, 01:00 PM)Mudbill Wrote: [ -> ]Use the CreateParticleSystemAtEntity script.

When you enter the area named "Visible" then you use that script to create your damaging particle system. You cannot really interact with particles though, but create an area there that you add the interaction callback to. You can either add the callback as you enter the area Visible, or have it already added but enable the disabled area instead when you enter Visible.

In the callback you added, give the player damage, run the DestroyParticleSystem script and another Create one to switch out the particles. Also either replace the area you interacted with with another, change which callback is applied to it, or use a variable in the existing callback (this one) to check if you've already interacted with it.

After that, another interaction can call your UsePortal(); script.

The only problem I can see is that the particles won't fade in and out unless they are made to do so (in the particle editor).

For an actually first time i understand what Mudbil writes :O
Pages: 1 2 3