Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Death to Spies

Death to Spies Stealth action. Professional spy working for the Soviet counterintelligence service executes dangerous operations in the heart of German territory.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2010, 10:07 AM
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
Where in the LUA file does it go?
Try to Level.OnLoaded() or Level.OnFinishLoad().

Quote:
Originally Posted by Pizzadvl View Post
It's the crack doing strangely in MoH Airborne, it skips things etc. Forgot to mention it, Not the mouse.
I want to play this..
See your inbox.
Reply With Quote
  #2  
Old 02-05-2010, 10:26 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 576
Default

Quote:
Originally Posted by forlik View Post
Try to Level.OnLoaded() or Level.OnFinishLoad()
I don't think you've given me the full code. The game crashes when I load up the level.
Reply With Quote
  #3  
Old 02-05-2010, 11:34 AM
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
I don't think you've given me the full code. The game crashes when I load up the level.
Of course it's not the full code. It's only "something like this". First of all you should change ID99 to needed ID.

We already talked about meshes here:
http://forum.1cpublishing.eu/showpos...6&postcount=27
Reply With Quote
  #4  
Old 02-05-2010, 12:11 PM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 576
Default

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
Reply With Quote
  #5  
Old 02-05-2010, 01: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
  #6  
Old 02-05-2010, 02:44 PM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 576
Default

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...
Attached Files
File Type: zip uboat.lua.zip (21.1 KB, 3 views)
Reply With Quote
  #7  
Old 02-05-2010, 03:09 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
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...
Additional errors:
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.