Quote:
Originally Posted by Liz Shaw
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