Thread: My DtS/MoT mod
View Single Post
  #2  
Old 02-05-2010, 12:50 PM
forlik's Avatar
forlik forlik is offline
Approved Member
 
Join Date: Nov 2008
Location: Minsk, Belarus
Posts: 450
Default

Quote:
Originally Posted by Liz Shaw View Post
Further attempts at doing this have resulted in a syntax error. What have I done wrong here?
Code:
function Level.FindActor
    local radist = Level.FindActor('ZS29');
    if ( radist != nil ) then       
       Actor.EnableMesh( radist, "grm_cap" , false );
    end;
  end

  function Level.FindActor2
    local radist = Level.FindActor('ZS30');
    if ( radist != nil ) then       
       Actor.EnableMesh( radist, "grm_cap" , false );
    end;
  end
1. ID should be surrounded with ''
2. Each function should have unique name
Reply With Quote