Bonjour, c'est encore moi le nul en ce logiciel. Bref en essayant de créer des map Random ne sachant pas si c'était possible je me suis dit autant faire beaucoup de portes en formes de mur qui en commencant la partie s'active ou non j'ai voulue reprendre le code de BushBoutton.lua mais sa ne semble pas fonctionner.
Merci pour vos aide, si il existe des façon de générer des map je suis preuneur un peut comme Monstrum désoler pour la pub.
Hello, it's me again a draw in software. In short, trying to create Random map not knowing if it was possible I thought as do many doors wall shapes that starting the game is activated or not I wanted to resume code BushBoutton.lua but its not working.
Thank you for your help, if there is way to generate a map I can preuneur as Monstrum grieve for the pub.
Script.enabled=true--bool "Enabled"
Script.soundfile=""--path "Sound" "Wav Files (*.wav):wav"
v = math.random(1,2)
function Script:Start()
if self.soundfile then
self.sound = Sound:Load(self.soundfile)
end
end
if (v = 1;){
function Script:Use()
if self.enabled then
if self.sound then self.entity:EmitSound(self.sound) end
self.component:CallOutputs("Use")
end
end
}
if (v = 2;){
function Script:Use()
if self.enabled then
if self.sound then self.entity:EmitSound(self.sound) end
self.component:CallOutputs("Use2")
end
end
}
function Script:Enable()--in
if self.enabled==false then
self.enabled=true
self.component:CallOutputs("Enable")
self.health=1
end
end
function Script:Disable()--in
if self.enabled then
self.enabled=false
self.component:CallOutputs("Disable")
self.health=0
end
end
function Script:Release()
if self.sound then self.sound:Release() end
end