![]() |
|
#451
|
||||
|
||||
|
A big thanks to forlik once again! As another cherry on top, there was an armed scientist in Dora who didn't have an ID until now. "Scientist05" now has a High Standard HDM instead of a Colt M1911A1.
UPDATE: All armed mechanics in Lightning now have IDs. Unfortunately, attempting to replace their Walthers with silenced Lugers has resulted in a syntax error... What have I done wrong? Last edited by Liz Shaw; 02-08-2010 at 12:40 AM. |
|
#452
|
||||
|
||||
|
Quote:
UPD: Why you try to change weapon for 5 mechanics at once? Try to do it for one. If it's not work - try to separate your task into several smaller tasks. For example: try to clear inventory only and start the game. Perhaps 'Actor.ClearInventory()' works only for player, not for NPCs. If 'Actor.ClearInventory()' works for mechanic - try to create pistol, etc. Last edited by forlik; 02-08-2010 at 08:58 AM. |
|
#453
|
||||
|
||||
|
I finally managed to solve a problem that has been a thorn in my side for quite a while - all armed mechanics in Lightning have silenced Lugers.
|
|
#454
|
||||
|
||||
|
I can't see any sense in this feature, nevertheless - my congratulations!
|
|
#455
|
||||
|
||||
|
Quote:
I think I've done enough now to release v4.0. http://www.megaupload.com/?d=OLLMQUQ0 What's new in this version:
What to expect in the next release:
|
|
#456
|
||||
|
||||
|
Here's a screenshot of the slightly revamped Lightning. It's still a WIP...
I already gave these workers Walther P38s, but how do I get rid of their rifles? |
|
#457
|
||||
|
||||
|
Quote:
P. S. Worker with Kar98k looks more historically accurate than worker with Walther P38 |
|
#458
|
||||
|
||||
|
Quote:
The rifle weapon slot seems to be immune to the Actor.ClearInventory command. What am I doing wrong here? Code:
local worker = Level.FindActor('GS06');
if (worker != nil ) then
Actor.EnableMesh( worker, "grm_cap", true );
Actor.ClearInventory(worker, true );
local gun = Level.CreateItem("Walter","Weapon");
Actor.PutWeapon( worker, Actor.WEAPON_SLOT_PISTOL, gun );
Actor.PutWeaponAmmo( worker, "Walter");
Actor.DropCurrentWeapon( worker, Actor.WEAPON_SLOT_RIFLE, "K98");
end;
|
|
#459
|
||||
|
||||
|
Where did you found Actor.WEAPON_SLOT_RIFLE?
|
|
#460
|
||||
|
||||
|
Uh... I guessed! That's not the right command isn't it?
EDIT: Got it wrong! It should have been WEAPON_SLOT_MACHINEGUN! But still, the rifle isn't removed! Last edited by Liz Shaw; 02-18-2010 at 11:47 AM. |
![]() |
|
|