mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
clarify variable types. you want to pass assetIDs, not actual profiles
This commit is contained in:
parent
846cec8dff
commit
c4b30b74fd
|
|
@ -21,21 +21,21 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
function ServerPlay2D(%profile)
|
function ServerPlay2D(%assetID)
|
||||||
{
|
{
|
||||||
// Play the given sound profile on every client.
|
// Play the given sound profile on every client.
|
||||||
// The sounds will be transmitted as an event, not attached to any object.
|
// The sounds will be transmitted as an event, not attached to any object.
|
||||||
for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
|
for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
|
||||||
ClientGroup.getObject(%idx).play2D(%profile);
|
ClientGroup.getObject(%idx).play2D(%assetID);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ServerPlay3D(%profile,%transform)
|
function ServerPlay3D(%assetID,%transform)
|
||||||
{
|
{
|
||||||
// Play the given sound profile at the given position on every client
|
// Play the given sound assetID at the given position on every client
|
||||||
// The sound will be transmitted as an event, not attached to any object.
|
// The sound will be transmitted as an event, not attached to any object.
|
||||||
for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
|
for(%idx = 0; %idx < ClientGroup.getCount(); %idx++)
|
||||||
ClientGroup.getObject(%idx).play3D(%profile,%transform);
|
ClientGroup.getObject(%idx).play3D(%assetID,%transform);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ServerPlaySound(%profile,%pos)
|
function ServerPlaySound(%profile,%pos)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue