mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Look for datablock property, and provide a default.
This commit is contained in:
parent
97be060c72
commit
ac58fa96b0
|
|
@ -212,7 +212,10 @@ function AIPlayer::singleShot(%this)
|
|||
// The shooting delay is used to pulse the trigger
|
||||
%this.setImageTrigger(0, true);
|
||||
%this.setImageTrigger(0, false);
|
||||
%this.trigger = %this.schedule(%this.shootingDelay, singleShot);
|
||||
%delay = %this.getDataBlock().shootingDelay;
|
||||
if (%delay $= "")
|
||||
%delay = 1000;
|
||||
%this.trigger = %this.schedule(%delay, singleShot);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue