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
#11
RE: Portal

Sorry to say but this is working like 50%

First: portals (ps-s) are activated when you enter the map...
When i click on portal it gives me damage and that's okay...but i asked like in original amnesia to portal first be invisible,then when enter area first PS should activate slowly after some time second PS activate BUT when is first PS activated and if player clicks the portal he gets damage and stuff and when another PS activates when he clicks on portal it do the stuff...

My hps:
Spoiler below!
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""Visible""BeginPortal"true1);
SetEntityPlayerInteractCallback("Touch""TouchPortal"false);
}


void BeginPortal(string &in asParentstring &in asChildint alState)
{
CreateParticleSystemAtEntity("Poral_Open""ps_orb_room_portal_open.ps""Touch"false);
//Remember to create the different particle systems. I don't have the names here.

AddTimer("OpenPortal"5"PortalTimer");

SetEntityActive("Touch"true);
SetLocalVarInt("PortalOpen"0);
}

void PortalTimer(string &in asTimer)
{
if(
asTimer == "OpenPortal")
{
CreateParticleSystemAtEntity("Portal_Start""ps_orb_room_portal_start.ps""Visible"false);
//Remember to create the different particle systems. I don't have the names here.

SetLocalVarInt("PortalOpen"1);
}
}

void TouchPortal(string &in asEntity)
{
if(
GetLocalVarInt("PortalOpen") == 1)
{
UsePortal();
}
else
{
GivePlayerDamage(1.0f"BloodSplat"truefalse);
}
}

void UsePortal()
{
//Will add later.



Maybe it is my bad

(This post was last modified: 10-28-2014, 12:45 PM by Straxedix.)
10-28-2014, 12:44 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: 3 Guest(s)