あげから
07/31/2023, 1:32 PMfunction dooryudo(su){
var DoorS = (Sigmoid(entity.doorMoveL) || Sigmoid(entity.doorMoveR));
if (DoorS > 0){
su.playsound (Dmain, "train.50050_yuudo", 1, 1, true);
}
else{
su.stopsound (Dmain, "train.50050_yuudo");
}elsafrozen2592
07/31/2023, 1:35 PMjs
function dooryudo(su)
{
var DoorS = max(entity.doorMoveL, entity.doorMoveR);
if (DoorS > 0)
{
su.playsound (Dmain, "train.50050_yuudo", 1, 1, true);
}
else
{
su.stopsound (Dmain, "train.50050_yuudo");
}
?
PS. Not sure if entity.doorMoveL is availableあげから
07/31/2023, 1:35 PMあげから
07/31/2023, 1:37 PMあげから
07/31/2023, 1:43 PMelsafrozen2592
07/31/2023, 1:46 PMあげから
07/31/2023, 1:47 PMあげから
07/31/2023, 1:47 PM真冬 雪々(まふゆ ゆきゆき)
07/31/2023, 1:48 PMjs
var entity = su.getEntity();
でentityからおおよそのデータは引っ張って来れますあげから
07/31/2023, 1:49 PM真冬 雪々(まふゆ ゆきゆき)
07/31/2023, 1:51 PMあげから
07/31/2023, 1:51 PMあげから
07/31/2023, 1:51 PM真冬 雪々(まふゆ ゆきゆき)
07/31/2023, 1:53 PMあげから
07/31/2023, 2:33 PMあげから
07/31/2023, 2:34 PMあげから
07/31/2023, 2:45 PMfunction dooryudo(su,entity)
{
if (entity.getTrainStateData(4) != 0)
{
su.playsound (Dmain, "train.50050_yuudo", 1, 1, true);
}
else
{
su.stopsound (Dmain, "train.50050_yuudo");
}
}あげから
07/31/2023, 2:46 PMあげから
07/31/2023, 2:47 PMelsafrozen2592
07/31/2023, 2:50 PM真冬 雪々(まふゆ ゆきゆき)
07/31/2023, 2:52 PM真冬 雪々(まふゆ ゆきゆき)
07/31/2023, 2:53 PM真冬 雪々(まふゆ ゆきゆき)
07/31/2023, 2:57 PMあげから
07/31/2023, 3:05 PMfunction dooryudo(su,entity)
{
var entity = su.getEntity();
if(!entity && entity.getTrainStateData(4) != 0){
su.playSound(Dmain, "train.50050_yuudo", 1, 1, true);
}
else{
su.stopSound(Dmain, "train.50050_yuudo");
}
}