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


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Issues Help Portal
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#21
RE: Portal

(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

10-30-2014, 01:37 PM
Find




Users browsing this thread: 1 Guest(s)