|
| 28 Oct 2012 03:52 AM |
Hello,
I was wondering if you could make a script that does not allow Team 1 to kill Team Team 2, But Team 1 can kill Team 3?
Or
RRC cannot kill allies, But they can kill raiders.
----------------- Your Sincerely, -EpicComputerGenuis Owner of R.R.C |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 04:28 AM |
| Wow, This forum is going so slow... |
|
|
| Report Abuse |
|
|
Aurarus
|
  |
| Joined: 22 Dec 2008 |
| Total Posts: 4761 |
|
|
| 28 Oct 2012 05:45 AM |
| You'll need to modify the weapons themselves. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 05:57 AM |
>EpicComputerGenius >Is requesting scripts
i beat an elephant at poker |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 08:39 AM |
I would make a _G method that deals with deal damage and if a player should receive damage from a certain player
Then use that in all my gun scripts.
|
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 08:46 AM |
_G["TeamDamage"] = function(recepiant,sender,ammount) if ammount < 1 then return false end if recepiant.ClassName ~= "Player" or sender.ClassName ~= "Player" then return false end
if recepiant.TeamColor ~= sender.TeamColor then recepiant.Character.Humanoid:TakeDamage(ammount) end end
--^ Put that in a seperate script
Then when you wanted to damage a target with a gun you would call
_G.TeamDamage(nickbricknick464,Telamon,96)
You have to use the two peoples player objects in the parameters.
|
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 08:49 AM |
Uh..Or..
Just check to see if the Character that was hit is on the Owner's team..
A function isn't needed.
【MᴀssɪᴠᴇGᴍᴀɴ】 - MG inc™ Copyright 2012© |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 08:51 AM |
Your way would work nick, I'm just saying.
【MᴀssɪᴠᴇGᴍᴀɴ】 - MG inc™ Copyright 2012© |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 08:52 AM |
Okay,
I just like functioning things so It would be easy to implement into say a dozen guns quickly. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2012 08:55 AM |
| Wow, Sour is right, o.e... EpicComputerGenius can't script... Wow, not a genius huh? |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2012 02:08 AM |
Umm... Thanks to those of you who actually helped me.
The people that were mocking me.... P.A.T.H.E.T.I.C. |
|
|
| Report Abuse |
|
|
| |
|
Taniss99
|
  |
| Joined: 15 Dec 2007 |
| Total Posts: 1707 |
|
|
| 29 Oct 2012 06:16 PM |
| Laughing at the "EpicComputerGenius" who can't script, calling everyone "P.A.T.H.E.T.I.C" by saying simple facts. |
|
|
| Report Abuse |
|
|