Game Development Community

Create a button to go to a new mission

by Alliancia · in Technical Issues · 10/17/2007 (9:08 am) · 3 replies

Hi

I have a button to give me the possibilty to go to a website... I would like to know, how to do, to go to a new mission...because I have few worlds and I would like to travel to different world.

This is my code

What I need to change


// scripting

function TeleportFLSpell::onImpact(%this, %spell, %caster, %impObj, %impPos, %impNorm)
{
if (%caster.client)
commandToClient(%caster.client, 'OpenWebPage', "Teleport to mywebsite.com",
"my website ?", "http://www.mywebsite.com");
}

Thanks you a lot for your help

Sorry for my goood english....

About the author

Recent Threads


#1
10/22/2007 (7:01 am)
I don't understand. What are you asking?
#2
10/22/2007 (6:45 pm)
Hi

I bought the version Arcane.fx with some animations with buttons down my mession...

Different sorts... and one of them give me the possibility to go to one website... I would like to change this button to go to a new mission...And I would like to know how to do...

By example to teleport to a new world like that WOW...

Thanks you for your help...

Yolaine
#3
12/06/2007 (6:59 am)
@Alliancia: go to the AFX private forums and ask your question again. What you want is advanced and will require some modification of the AFX script code. So go to the AFX forum and ask, Jeff is wonderful and he will help you. There is also a function you can call to load a new mission.
loadMission("GameDirectory/data/missions/MissionName.mis");