Meteor 2 Scripting Functions
Effects
void createExplosion(vector2 pos, float radius, float damage, float armourPenetration, int ownerID)
Create an in-game explosion (server only).
if(isServer())
{
createExplosion(getPos(PLAYER_OBJECT), 20, 100, 50, PLAYER_OBJECT);
}
Cannot run on client.
armourPenetration is 0 to 100.
void fade(string text, float fadeOutSeconds, float fadedSeconds, float fadeInSeconds)
Fades out the screen, displays a message and fades back in.
fade("Later that day...", 1, 3, 1);
fade("", 0, 2, 2);
Only affects the local computer.
Player controls are disabled while fading and while faded.
bool getCinematicBarsEnabled()
Gets whether the cinematic bars are enabled.
if(getCinematicBarsEnabled())
{
print("Cinematic bars are enabled.");
}
else
{
print("Cinematic bars are disabled.");
}
void setCinematicBarsEnabled(bool enabled)
Sets whether the cinematic bars are enabled.
setCinematicBarsEnabled(true);
Only affects the local player.
Player controls are disabled while cinematic bars are enabled.
Index
Generated on the 23 November 2024 at 08:20:41 (UK Time)