Jump to content

AudiDJ

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by AudiDJ

  1. So I am very interested in the Project Saturn Tutorials put on by Jorn. However, I have run into a problem and cannot find a solution. I keep getting - error in Function 'Point'. argument #2 is 'string';'Entity' expected. -Here's my script:

     

    Script.player = "" --entity "Player"

    Script.rotationSpeed = 0.1 --float "Rotation Speed"

    Script.fireRate = 1.0 --float "Fire rate"

    Script.fireRateTimer = 0

    Script.muzzleFlashLight = "" --entity "Muzzle Flash Light"

    Script.muzzleTime = 0.1 --float "muzzleTimer"

    Script.muzzleTimer = 0

     

    function Script:UpdateWorld()

    self.entity:Point(self.player, 2, Time:GetSpeed() * self.rotationSpeed)

     

    self.fireRateTimer = self.fireRateTimer + (Time:GetSpeed()/100)

    self.muzzleTimer = self.muzzleTimer + (Time:GetSpeed()/100)

     

    if(self.fireRateTimer > self.fireRate) then

    self.muzzleFlashLight:Show()

    self.muzzleTimer = 0

    end

    if(self.muzzleTimer > self.muzzleTime) then

    self.muzzleFlashLight:Hide()

    end

    end

     

     

    Thanks for taking a look.

    -Audi

×
×
  • Create New...