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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script doesn't work?
Henriksen Offline
Senior Member

Posts: 308
Threads: 71
Joined: Dec 2010
Reputation: 2
#3
RE: Script doesn't work?

I see, thank you. I made another map and got the default script file, but I still can't seem to get anything working. I'm currently trying to get a levithian to move from its current position to a trigger area using CharMover_MoveToEntity but I cant seem to get that to work either. I put the function(?) in the OnStart class(?). I have no idea what I'm doing wrong, but it seems the game isn't registring the changes I'm making to the file.

Quote:#include "interfaces/Map_Interface.hps"
#include "base/Inputhandler_Types.hps"

#include "helpers/helper_map.hps"
#include "helpers/helper_props.hps"
#include "helpers/helper_effects.hps"
#include "helpers/helper_audio.hps"
#include "helpers/helper_imgui.hps"
#include "helpers/helper_sequences.hps"
#include "helpers/helper_game.hps"
#include "helpers/helper_modules.hps"
#include "helpers/helper_ai.hps"

//--------------------------------------------------
 
/*Place any global values here. These must be const variables as they will not be saved*/
/*This is also the place for enums and classes, but these should be avoided whenever possible*/
 
//--------------------------------------------------
 
class cScrMap : iScrMap
{
//--------------------------------------------
 
//////////////////////////////////////////////////////////////////////////////////////////
// ==============
// MAIN CALLBACKS
// ==============
//{///////////////////////////////////////////////////////////////////////////////////////
 
//-------------------------------------------------------
 
////////////////////////////
// Set up map environment
void Setup()
{

}

//-------------------------------------------------------

////////////////////////////
// Run first time starting map
void OnStart()
{
        CharMover_MoveToEntity("leviathan_1","TriggerArea_1");
}

//-------------------------------------------------------

////////////////////////////
// Run when entering map
void OnEnter()
{
}

//-------------------------------------------------------

////////////////////////////
// Run when leaving map
void OnLeave()
{
}

//-------------------------------------------------------

////////////////////////////
// The player has died.
void OnPlayerKilled(int alRecentDeaths, const tString&in asSource)
{
}

//-------------------------------------------------------

////////////////////////////
// To get when player makes input (mostly used for debug)
void OnAction(int alAction, bool abPressed) 
{
if(abPressed==false) return;

if(alAction == eAction_Test1)
{
}
}

//-------------------------------------------------------

////////////////////////////
// This only used for pure debug purposes when info needs to printed.
float DrawDebugOutput(cGuiSet @apSet,iFontData @apFont,float afY)
{
//afY = cLux_DrawDebugText("My Debug value:"+..., afY);
return afY;
}
 
//-------------------------------------------------------
 
//} END MAIN CALLBACKS
 
 
//////////////////////////////////////////////////////////////////////////////////////////
// ==============
// MAIN FUNCTIONS
// ==============
//{///////////////////////////////////////////////////////////////////////////////////////
 
//-------------------------------------------------------
 
/*Put any variables that are used in more than one scene here.*/
 
//-------------------------------------------------------
 
/*Put any functions that are used in more than one scene here.*/
 
//-------------------------------------------------------
 
//} END MAIN FUNCTIONS
 
//////////////////////////////////////////////////////////////////////////////////////////
// ==============
// SCENE X *NAME OF SCENE*
// ==============
//{//////////////////////////////////////////////////////////////////////////////////////
 
/////////////////////////////////////////
// General
//{//////////////////////////////////////
 
//-------------------------------------------------------
 
/*Put any variables that are used by many events in Scene X here.*/
 
//-------------------------------------------------------
 
/*Put any functions that are used in more than one event in Scene X here.*/
 
//-------------------------------------------------------

//} END General
 
/////////////////////////////////////////
// Event *Name Of Event*
//{//////////////////////////////////////
 
//-------------------------------------------------------
 
/*Put any variables that are only used in Scene X, Event X here.*/
 
//-------------------------------------------------------
 
/*Put any functionsthat are only used in Scene X, Event X here.*/
 
//-------------------------------------------------------
 
//} END Event *Name Of Event*
 
//} END SCENE X
 
 
/////////////////////////////////////////
// ==============
// TERMINALS
// ==============
//{//////////////////////////////////////
 
//-------------------------------------------------------
 
/////////////////////////////////////////
// Terminal *Name Of Terminal*
//{//////////////////////////////////////
 
//-------------------------------------------------------
 
/*Put any variables that are only used Terminal here.*/
 
//-------------------------------------------------------
 
/*Put any functions that are only used Terminal here.*/
 
//-------------------------------------------------------
 
//} END Terminal *Name Of Terminal*

//} END TERMINALS
 
}
10-24-2018, 07:52 PM
Find


Messages In This Thread
Script doesn't work? - by Henriksen - 10-24-2018, 05:45 PM
RE: Script doesn't work? - by Abion47 - 10-24-2018, 07:35 PM
RE: Script doesn't work? - by Henriksen - 10-24-2018, 07:52 PM
RE: Script doesn't work? - by Abion47 - 10-25-2018, 02:57 AM
RE: Script doesn't work? - by Henriksen - 10-25-2018, 08:05 PM



Users browsing this thread: 1 Guest(s)