Hi,
I'm trying to make a modified version of the lightning gun which stops the target vehicle being able to move or use its weapons for a few seconds, but I'm not sure exactly how to go about doing so. I don't know what function(s) would be called when the vehicle is hit by weaponfire, so I'm not sure where I might be able to place my code to do this correctly.
Would it be possible to trigger this effect via an extension of the DamageType class? I had a look at the DamageType class and it doesn't look capable of directly applying such special effects to the target, but I'm new to UnrealScript so maybe someone with more experience in unrealscript can suggest how this might be done.
I've also had a peek at the SniperFire class, but it doesn't seem to do much other than draw the bolt of lightning and set some defaultproperties related to its damage, fire rate, etc.
Any help would be appreciated.
Thanks.
I'm trying to make a modified version of the lightning gun which stops the target vehicle being able to move or use its weapons for a few seconds, but I'm not sure exactly how to go about doing so. I don't know what function(s) would be called when the vehicle is hit by weaponfire, so I'm not sure where I might be able to place my code to do this correctly.
Would it be possible to trigger this effect via an extension of the DamageType class? I had a look at the DamageType class and it doesn't look capable of directly applying such special effects to the target, but I'm new to UnrealScript so maybe someone with more experience in unrealscript can suggest how this might be done.
I've also had a peek at the SniperFire class, but it doesn't seem to do much other than draw the bolt of lightning and set some defaultproperties related to its damage, fire rate, etc.
Any help would be appreciated.
Thanks.
Comment