arx-level-generator
Version:
A tool for creating Arx Fatalis maps
21 lines • 607 B
JavaScript
import { ScriptProperty } from '../ScriptProperty.js';
/**
* A ScriptProperty for allowing the player to jump when standing on
* this entity. This property also enables NPCs to walk on top of
* the entity.
*
* @extends ScriptProperty
* @see https://wiki.arx-libertatis.org/Script:setplatform
*/
export class Platform extends ScriptProperty {
toString() {
return `set_platform ${this.value === true ? 'on' : 'off'}`;
}
static get on() {
return new Platform(true);
}
static get off() {
return new Platform(false);
}
}
//# sourceMappingURL=Platform.js.map