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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#16
RE: Portal

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).

(This post was last modified: 10-28-2014, 01:01 PM by Mudbill.)
10-28-2014, 01:00 PM
Find


Messages In This Thread
Portal - by Straxedix - 10-28-2014, 10:03 AM
RE: Portal - by Mudbill - 10-28-2014, 10:28 AM
RE: Portal - by Straxedix - 10-28-2014, 10:35 AM
RE: Portal - by FlawlessHappiness - 10-28-2014, 11:48 AM
RE: Portal - by Straxedix - 10-28-2014, 11:54 AM
RE: Portal - by FlawlessHappiness - 10-28-2014, 12:03 PM
RE: Portal - by Straxedix - 10-28-2014, 12:28 PM
RE: Portal - by FlawlessHappiness - 10-28-2014, 12:32 PM
RE: Portal - by Straxedix - 10-28-2014, 12:34 PM
RE: Portal - by FlawlessHappiness - 10-28-2014, 12:35 PM
RE: Portal - by Straxedix - 10-28-2014, 12:44 PM
RE: Portal - by FlawlessHappiness - 10-28-2014, 12:47 PM
RE: Portal - by Straxedix - 10-28-2014, 12:51 PM
RE: Portal - by FlawlessHappiness - 10-28-2014, 12:55 PM
RE: Portal - by Straxedix - 10-28-2014, 12:59 PM
RE: Portal - by Mudbill - 10-28-2014, 01:00 PM
RE: Portal - by FlawlessHappiness - 10-28-2014, 01:02 PM
RE: Portal - by Straxedix - 10-29-2014, 01:37 PM
RE: Portal - by Straxedix - 10-30-2014, 01:37 PM
RE: Portal - by FlawlessHappiness - 10-29-2014, 02:03 PM
RE: Portal - by Straxedix - 10-29-2014, 11:51 PM



Users browsing this thread: 5 Guest(s)