Meteor 2 Scripting Functions
Legacy
void SC_PlaySound(string effectName)
Deprecated function, use playSound instead.
int SC_GetSoundNumberForName(string effectName)
Deprecated function, use getSoundNumber instead.
void SC_PlayDirectionalNumber(int soundNumber, int x, int y, string effectName)
Deprecated function, use playSoundNumber2D instead.
void SC_PlayMusic()
Deprecated function, use playMusic instead.
void SC_MusicSeekToStart()
Deprecated function, use restartMusic instead.
void SC_StopMusic()
Deprecated function, use stopMusic instead.
void SC_TogglePauseMusic()
Deprecated function, use pauseMusic/resumeMusic instead.
void SC_AddExplosion(int x1, int y1, int w, int h, int damage, int ownerObjectId)
Deprecated function, use createExplosion instead.
For legacy support, x1 and y1 are top-left (not centre) based coodinates.
void SC_GiveItem(string itemName, int amount)
Deprecated function, use giveItem instead.
int SC_GetItemCount(string itemName)
Deprecated function, use getItemCount instead.
void SC_ResetAllItems(bool mapStartItemsOnly)
Deprecated function, use resetItems instead.
int SC_Random(int lower, int upper)
Deprecated function, use randomInt instead.
void SC_EndCurrentLevel()
Deprecated function, use endLevel instead.
void SC_GameOver(string message)
Deprecated function, use gameOver instead.
void SC_RunMap(string filename)
Deprecated function, use runMap instead.
void SC_PlayMovieClip(string filename, string soundName)
Deprecated function, use playMovieClip instead.
void SC_SetSideId(uint8 sideNumber, int sideId)
Deprecated function, use setSideID instead.
int SC_AddObject(string objectName, int x, int y, float angle, uint8 aiType, uint8 side, string overrideName, bool moving, bool locked, bool multiplayerRespawn)
Deprecated function, use createObject instead.
bool SC_BindObjectToWaypoint(int objectId, int waypointId)
Deprecated function, use bindToWaypoint instead.
bool SC_BindObjectToWaypointSoft(int objectId, int waypointId)
Deprecated function, use bindToWaypointSoft instead.
void SC_SetObjectHidden(int objectId, bool value)
Deprecated function, use setHidden instead.
bool SC_GetObjectHidden(int objectId)
Deprecated function, use getHidden instead.
void SC_ShowObjectTeleport(int objectId)
Deprecated function, use showTeleport instead.
uint8 SC_GetObjectSide(int objectId)
Deprecated function, use getSide instead.
void SC_SetObjectSide(int objectId, uint8 value)
Deprecated function, use setSide instead.
void SC_GetObjectCoords(int objectId, int * x, int * y)
Deprecated function, use getPos instead.
void SC_SetObjectCoords(int objectId, int x, int y)
Deprecated function, use setPos instead.
float SC_GetObjectAngle(int objectId)
Deprecated function, use getDir instead.
void SC_SetObjectAngle(int objectId, float angle)
Deprecated function, use setDir instead.
int SC_GetObjectHits(int objectId)
Deprecated function, use getHits instead.
void SC_SetObjectHits(int objectId, int hits)
Deprecated function, use setHits instead.
bool SC_GetObjectIndestructible(int objectId)
Deprecated function, use getIndestructible instead.
void SC_SetObjectIndestructible(int objectId, bool indestructible)
Deprecated function, use setIndestructible instead.
int SC_GetObjectSpeed(int objectId)
Deprecated function, use getSpeed instead.
The speed will be converted to pixels per tick.
void SC_SetObjectSpeed(int objectId, int speed)
Deprecated function, use setSpeed instead.
The speed will be converted to pixels per tick.
int SC_GetObjectMaxSpeed(int objectId)
Deprecated function, use getMaxSpeed instead.
The speed will be converted to pixels per tick.
void SC_SetObjectMaxSpeed(int objectId, int maxSpeed)
Deprecated function, use setMaxSpeed instead.
The speed will be converted to pixels per tick (legacy system).
int SC_GetObjectDefaultMaxSpeed(int objectId)
Deprecated function, use getDefaultMaxSpeed instead.
The speed will be converted to pixels per tick.
uint8 SC_GetObjectAiType(int objectId)
Deprecated function, use getAiType instead.
void SC_SetObjectAiType(int objectId, uint8 aiType)
Deprecated function, use setAiType instead.
bool SC_GetObjectLocked(int objectId)
Deprecated function, use getLocked instead.
void SC_SetObjectLocked(int objectId, bool locked)
Deprecated function, use setLocked instead.
bool SC_GetObjectActive(int objectId)
Deprecated function, use getActive instead.
void SC_SetObjectActive(int objectId, bool active)
Deprecated function, use setForceActive instead.
bool SC_GetObjectNoTarget(int objectId)
Deprecated function, use getNoTarget instead.
void SC_SetObjectNoTarget(int objectId, bool noTarget)
Deprecated function, use setNoTarget instead.
bool SC_DoesObjectExist(int objectId)
Deprecated function, use objectExists instead.
void SC_PutObjectOnHorse(int riderObjectId, int horseObjectId)
Deprecated function, use putOnHorse instead.
void SC_KickObjectOffHorse(int riderObjectId)
Deprecated function, use kickOffHorse instead.
void SC_ObjectHoot(int objectId)
Deprecated function, use hoot instead.
string SC_GetObjectTypeNameForNumber(int objectId)
Deprecated function, use getTypeName instead.
int SC_GetObjectTypeNumberForName(string typeName)
Deprecated function, use getTypeNameNumber instead.
void SC_SetObjectFollow(int objectId, int objectToFollowId)
Deprecated function, use setFollow instead.
void SC_ResetObjectRespawnCoords(int objectId)
Deprecated function, use resetRespawnCoords instead.
void SC_ShowPda()
Deprecated function, use setPdaOpen instead.
Same as using setPdaOpen(true);
void SC_AddPdaMessage(string subject, string message)
Deprecated function, use addPdaMessage instead.
bool SC_LoadPdaMessage(string sectionName, bool showPda)
Deprecated function, use loadPdaMessage instead.
void SC_RemovePdaMessage(string subject)
Deprecated function, use removePdaMessage instead.
void SC_ClearAllPdaMessages()
Deprecated function, use clearAllPdaMessages instead.
void SC_PlayerGetInVehicle(int objectId)
Deprecated function, use playerGetInVehicle instead.
void SC_PlayerGetOutOfVehicle(bool placeInCentre)
Deprecated function, use playerGetOutOfVehicle instead.
bool SC_IsPlayerInVehicle()
Deprecated function, use isPlayerInVehicle instead.
void SC_SetPlayerObjectId(int objectId)
Deprecated function, use setPlayerObject instead.
int SC_GetPlayerObjectId()
Deprecated function, use getLocalPlayer instead.
void SC_SetPlayerInteractionEnabled(bool value)
Deprecated function, use setPlayerInteractionEnabled instead.
bool SC_GetPlayerInteractionEnabled()
Deprecated function, use getPlayerInteractionEnabled instead.
void SC_SetSectorTexture(int sectorId, string textureName)
Deprecated function, use setSectorTexture instead.
string SC_GetSectorTexture(int sectorId)
Deprecated function, use getSectorTexture instead.
void SC_SetSectorHidden(int sectorId, bool hidden)
Deprecated function, use setSectorHidden instead.
bool SC_GetSectorHidden(int sectorId)
Deprecated function, use getSectorHidden instead.
void SC_SetSectorTriggerEnabled(int sectorId, bool enabled)
Deprecated function, use setSectorTriggerEnabled instead.
bool SC_GetSectorTriggerEnabled(int sectorId)
Deprecated function, use getSectorTriggerEnabled instead.
void SC_OpenDoor(int sectorId)
Deprecated function, use openDoor instead.
void SC_OpenForcefield(int sectorId)
Deprecated function, use openForcefield instead.
void SC_CloseForcefield(int sectorId, string forcefieldTextureName)
Deprecated function, use closeForcefield instead.
void SC_SetSectorDamage(int sectorId, int damage)
Deprecated function, use setSectorDamage instead.
int SC_GetSectorDamage(int sectorId)
Deprecated function, use getSectorDamage instead.
int SC_AddSprite(string spriteName, int x, int y, float angle, uint8 side)
Deprecated function, use createSprite instead.
void SC_SetSpriteHidden(int spriteId, bool hidden)
Deprecated function, use setSpriteHidden instead.
bool SC_GetSpriteHidden(int spriteId)
Deprecated function, use getSpriteHidden instead.
void SC_PassToConsole(string command)
Deprecated function, use passToConsole instead.
void SC_MessageBox(string messageText)
Deprecated function, use messageBox instead.
void SC_GameMessage(string messageText)
Deprecated function, use gameMessage instead.
void SC_ConsoleMessage(string messageText)
Deprecated function, use print instead.
bool SC_StringInputBox(string str, int maxLen, string caption)
Deprecated function, use stringInputBox instead.
bool SC_ConfirmBox(caption title)
Deprecated function, use confirmBox instead.
bool SC_CreateToolbar(int toolbarNumber, string title, int x, int y, bool docked, bool localOnly)
Deprecated function, use createToolbar instead.
localOnly has no effect (always true).
void SC_DestroyToolbar(int toolbarNumber, bool localOnly)
Deprecated function, use deleteToolbar instead.
localOnly has no effect (always true).
void SC_AddToolbarButton(int toolbarNumber, string caption, string imageFilename, string triggerText, bool localOnly)
Deprecated function, use addToolbarButton instead.
localOnly has no effect (always true).
Index
Generated on the 23 November 2024 at 08:20:42 (UK Time)