Introductions/Apps/Suggestions > Help/Requests

that floating thing over all respected

(1/3) > >>

chi3fr4:
I have seen this floating thing over some respected people which orbits over them and attacks people when they type !"name here". I asked them if they could tell me how they made it or if they can tell me how to make. they only told me its expression 2. can somebody tell me atleast what its name is or tell me where I can find tutorial? I can post a picture if I see them again.

Minic:
Heres the general idea.

sinr()
cosr()
E:pos()
E:applyForce()
E:lastSaid()
findPlayerByName()

http://wiki.garrysmod.com/?title=Wire_Expression2

Use trigonometry to calculate orbital pattern (much like a unit circle), add it to your position, then applyForce.

If lastSaid(stuff) findPlayerByName, then applyForce to them.

Thats basically how it's done. Sorry but I don't want to post an Expression2 with an "attack" feature on the forums. Hope you understand. Good luck getting it all worked out!

-Minic

chi3fr4:
thanks, yeah i understand why u don't want to post the attack feature

Sanders:
Also, simply for your information, most people with this e2 did not make it themselves. I have seen both respecteds and nonrespecteds with this e2.  ;)

The Southern Cross:
and FYI its called teh fairy

Navigation

[0] Message Index

[#] Next page

Go to full version