is there a way that an weapon causes paralysis for a defined time and amount.
So lets say i have a grenade and everybody affected becomes for 50 seconds 20% paralysis (he moves slower and shots slower).
How would I make a paralysis weapon?
Moderator: Moderators
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: paralysis
Never seen that happen before. Maybe, you (on singleplayer only) use the LUA to somehow make the player work similar to a playercommand in Fake Console. Example, the "slow team blah blah blah" button makes the speeds of the characters slow. Maybe you could make the weapon cause an effect, and make them slow for such a large amount, they are virtually frozen. This is all theoretical, though.
- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Re: paralysis
You could try...
After ScriptPostLoad section:
I'm basing this of what I see in MasterSaitek009's Force Stasis... I'm not sure if it will work or not
Code: Select all
OnObjectDamage(
function(object, damager)
if GetObjectHealth(object) > 900000 then return end
if GetObjectLastHitWeaponClass(object) == "THEWEAPONNAME" then
UnitSpeedDec(object, 50)
end
end
)Code: Select all
function UnitSpeedDec(object, timercount)
SetProperty(object, "MaxSpeed", ENTERDISIREDVALUE)
CreateTimer(untildef)
SetTimerValue(untildef, timercount)
StartTimer(untildef)
OnTimerElapse(
function(timer)
SetProperty(object, "MaxSpeed", ENTERDEFAULTVALUE)
end,
untildef
)
DestroyTimer(untildef)
end
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: paralysis
would this be multi compatible??
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: paralysis
Doubtful. Lua weapons rarely are.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: paralysis
ok i'll may have a look at this later 
