feat: 50 игр на Lua + импорт Roblox для всех + поддержка Lua в плеере #39
@ -1817,10 +1817,11 @@ export function registerRobloxShim(lua, opts) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
// Эффекты частиц (confetti, sparks и т.п.) — как game.scene.spawnParticles.
|
// Эффекты частиц (confetti, sparks и т.п.) — как game.scene.spawnParticles.
|
||||||
|
// BabylonScene._spawnParticleEffect ждёт payload.type и payload.position.
|
||||||
global.set('__rbxl_spawn_particles', (kind, x, y, z, duration, count) => {
|
global.set('__rbxl_spawn_particles', (kind, x, y, z, duration, count) => {
|
||||||
send('scene.particles', {
|
send('scene.particles', {
|
||||||
kind: String(kind || 'confetti'),
|
type: String(kind || 'confetti'),
|
||||||
pos: { x: +x, y: +y, z: +z },
|
position: { x: +x, y: +y, z: +z },
|
||||||
duration: Number(duration) || 2,
|
duration: Number(duration) || 2,
|
||||||
count: Number(count) || 1,
|
count: Number(count) || 1,
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user