Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
function Create()
submachineGuard = Object.Spawn("Guard",this.Pos.x,this.Pos.y);
Object.SetProperty(submachineGuard,"Equipment",46);
Object.SetProperty(submachineGuard,"PersistEquipment",46);
Object.SetProperty(submachineGuard,"PersistEquipmentString","SubMachineGun");
Object.SetProperty(submachineGuard,"Tooltip","Type: SMG");
Object.Sound(this,"Guard","Place");
this.Delete();
end
Then you also need a script for the nomal guard like this:
local noLag = 0
function Update(TimePassed)
if noLag==nil then
noLag=0
end
noLag = noLag + TimePassed
if noLag>0.1 then
noLag = 0
if this.Equipment=="Fists" then
this.Equipment = 0;
end
if this.Damage<1 then
if this.TargetObject.i~=-1 then
if this.Equipment~=this.PersistEquipmentString then
this.Equipment = this.PersistEquipment;
end
elseif this.Equipment~="None" then
this.Equipment=0;
end
end
end
end