The decompiled versions of all \domino\ scripts found in Watch_Dogs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

58 lines
1.3 KiB

-- DOMINO REFLECTION BOX START
--
-- <Display Category="Sound" Text="Set Sound Variable Value"/>
--
-- <ContextHelp><![CDATA[
-- Sets a value to a Sound Variable.
-- If the Sound Variable is of type "Integer", use SetIntValue
-- If the Sound Variable is of type "Float", use SetFloatValue
-- SoundVarId is the variable's ID from Dare, in decimal format.
-- ]]></ContextHelp>
-- <ControlIn Name="SetIntValue">
-- <LinkRule>
-- <Target anchor="SoundVarId"/>
-- <Target anchor="IntValue"/>
-- </LinkRule>
-- </ControlIn>
-- <ControlIn Name="SetFloatValue">
-- <LinkRule>
-- <Target anchor="SoundVarId"/>
-- <Target anchor="FloatValue"/>
-- </LinkRule>
-- </ControlIn>
--
-- <ControlOut Name="Out"/>
--
-- <DataIn Name="SoundVarId" Type="Core|int"/>
-- <DataIn Name="IntValue" Type="Core|int"/>
-- <DataIn Name="FloatValue" Type="Core|float"/>
--
-- DOMINO REFLECTION BOX END
SoundVarValue = {
};
function SoundVarValue:Create(cbox)
-- left empty on purpose
end
function SoundVarValue:Init(cbox)
end
function SoundVarValue:ShutDown()
end
function SoundVarValue:SetIntValue()
SetSoundVarIdIntValue(self.SoundVarId, self.IntValue);
self:Out();
end
function SoundVarValue:SetFloatValue()
SetSoundVarIdFloatValue(self.SoundVarId, self.FloatValue);
self:Out();
end
export = SoundVarValue;
SoundVarValue = nil;