SetPropertyText()
:MapPatcher code for map "MH-Incursion+":
Code: Select all
if (SpecialControlCannon.GetPropertyText("Fire_ProjectileClass") == "Class'UnrealI.RazorBlade'") // #=5
if (class'SharedCode'.static.SetPropertyTextEx(SpecialControlCannon, "Fire_ProjectileClass", "Class'MapPatcherSvr.RazorBladeSB'", CRespectCase))
PatchCount++;
local RazorBladeSB WhatEver;
, the replacement in runtime works.(SetPropertyTextEx() is the same as SetPropertyText() but returns FALSE if assigning didn't work.)