mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Merge pull request #1012 from eightyeight/singleshot-fix
Fix APlayer::singleShot
This commit is contained in:
commit
2dd23e459a
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue