Jump to content

Help with a script!


Desolatesins

Recommended Posts

Ok, I want to make a gun that essentially does no damage to the target, how can I do this? If I make a weapon do 0 damage any added effects on that weapon (like a dartgun) does not get applied. I am making a weapon that is supposed to knockout a victim after a certain length of time, and the idea is they have no idea they have been shot with the dart (it is a painless needle, and minutes later they collapse, paralyzed). The problem is, I have to cause damage to the target (at least 1 damage) for the script to have effect. If I set the target to IgnoreCrime 1 before I shoot him, the damage is fine, but it's not a smooth fix, as I don't know how to automatically a apply ignoreCrime on the target before getting shot, does anyone know what I could use in order to make my weapon not make them go hostile when they get shot, but essentially ignore the shot?
Link to comment
Share on other sites

By the way, this is my fix for now..any better suggestions?

 

ScriptName DiscretionScript

 

Float Timer

Short DoOnce

 

Begin ScriptEffectStart

Set Timer to 1.4

Set DoOnce to 0

End

 

Begin ScriptEffectUpdate

If DoOnce == 0

If Timer <= 0

Player.SCAOnActor

Set DoOnce to 1

EndIf

Set Timer to (Timer - ScriptEffectElapsedSeconds )

EndIf

End

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...