Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
IsValidMapPos
Syntax
C++
int IsValidMapPos(IFunctionHandler * pH);
Parameters 
Description 
Position vector. 

Syntax: System.IsValidMapPos( v ) 

Checks if the position is a valid map position. 

int CScriptBindSystem::ActivateMainLight(IFunctionHandler *pH) { SCRIPT_CHECK_PARAMETERS(2); bool bActive; CScriptVector oVec(m_pSS); if(pH->GetParam(1,*oVec)) { pH->GetParam(2, bActive); m_p3DEngine->GetBuildingManager()->ActivateMainLight(oVec.Get(), bActive); } return pH->EndFunction(); } 

int CScriptBindSystem::SetSkyBox(IFunctionHandler *pH) { SCRIPT_CHECK_PARAMETERS(3); const char *pszShaderName; float fBlendTime; bool bUseWorldBrAndColor; pH->GetParam(1, pszShaderName); pH->GetParam(2, fBlendTime); pH->GetParam(3, bUseWorldBrAndColor); m_p3DEngine->SetSkyBox(pszShaderName);// not supported now: fBlendTime, bUseWorldBrAndColor); return pH->EndFunction();

Copyright (c) 2012. All rights reserved.