![]() |
|
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
|
||||
|
||||
![]() 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 |
#2
|
||||
|
||||
![]()
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...
|
#3
|
||||
|
||||
![]() 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. |
#4
|
||||
|
||||
![]()
It works! One of them has his képi removed, but it also means that the other one has an unknown ID. He is registered in the SWD as "GermanSoldierZ29", so I thought it was obvious that his ID was "ZS29".
In other news, Strogov now wears the doctor's clothes in Renegades - Haggard Games already gave the doctor his nude texture and pass zone restrictions, but for some reason Strogov can't take his clothes until now. It was easy to do, since the Soviet doctor's clothes are a fourth scientist skin. |
#5
|
||||
|
||||
![]()
Is there a similar way to change an actor's skin?
|
#6
|
||||
|
||||
![]() Quote:
Something like this: Actor.SetSkin(actor, skin) Try to search "SetSkin" in lua files. |
#7
|
||||
|
||||
![]()
Once again, it works! As a cherry on top, whenever Strogov puts on the spare submariner's uniform in King's Riddle, he automatically has the second sailor skin. I did the same thing with the spare doctor's suit in Dora.
|
![]() |
|
|