Page 1 of 1
Portals
Posted: Tue Mar 31, 2015 6:23 am
by Emera Nova

is there a way to make it so the portals act as teleporters?
Re: Portals
Posted: Tue Mar 31, 2015 7:09 am
by minmay
They'll only ever work for the party, since only the party can ever go through a PortalComponent, but sure. Just use PortalComponent.onArrival to set the party's position and fade the screen back in.
Re: Portals
Posted: Tue Mar 31, 2015 2:34 pm
by Emera Nova
Is
something that would go into a script within the game or would you put it in the objects.lua file?
If it's the .lua file one do I need to replace the
Code: Select all
onArrival = function()
GameMode.completeGame("assests/videos/outro1.ivf")
end,
with the PortalComponent and then a set of coors?
Same kind of question as far as making it fade back in after using the portal, where exactly do I tell it to change that.
Re: Portals
Posted: Tue Mar 31, 2015 2:46 pm
by Drakkan
simple solution would be - just disable the portal function and place there invisible teleporter object instead

Re: Portals
Posted: Tue Mar 31, 2015 2:50 pm
by Emera Nova
That would be far simpler I must say x]