![]() |
|
|||||||
| Death to Spies Stealth action. Professional spy working for the Soviet counterintelligence service executes dangerous operations in the heart of German territory. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Try to Level.OnLoaded() or Level.OnFinishLoad().
See your inbox. |
|
#2
|
||||
|
||||
|
I don't think you've given me the full code. The game crashes when I load up the level.
|
|
#3
|
||||
|
||||
|
Quote:
We already talked about meshes here: http://forum.1cpublishing.eu/showpos...6&postcount=27 |
|
#4
|
||||
|
||||
|
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.FindActor
local radist = Level.FindActor('ZS30);
if ( radist != nil ) then
Actor.EnableMesh( radist, "grm_cap" , false );
end;
end
|
|
#5
|
||||
|
||||
|
Quote:
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
2. Each function should have unique name |
|
#6
|
||||
|
||||
|
I can't do this at all! I'm sending you what I'm trying to do. Seems you have more of a knowledge of this than me...
|
|
#7
|
||||
|
||||
|
Quote:
1. You create function in function. It's not allowed. 2. There are no actor with ID 'ZS29' Try this lua: Uboat.zip I can't test it in game just now, but it should work. |
![]() |
|
|