Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 … 4 5 6 7 8 Next »
HELP: EGP Buttons
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
HELP: EGP Buttons
17-06-2014, 01:27 PM, (This post was last modified: 17-06-2014, 01:33 PM by Alanzote.)
#3
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: HELP: EGP Buttons
(17-06-2014, 08:45 AM)Cobra Wrote: Show us what you have tried so far
Here is the codeSadIf you noticed, I've copied the function! But I'll not post this E2 on this forum!)

Code:
####FUNCTIONS##### function number wirelink:button(Cursor:vector2,ID:number) { local BPos = This:egpPos(ID) local BSize = This:egpSize(ID)/2 local Pressed = inrange(Cursor,BPos-BSize,BPos+BSize) return Pressed } function click() { E:entity():soundPlay(1,20,"(SOMETHING)") } ###BUTTON######### User = E["User",entity] Cursor = E:egpCursor(User) Use = User:keyUse() if(changed(Use) & Use) { click() if(E:button(Cursor,10)) { E:egpClear() } }

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
HELP: EGP Buttons - by Alanzote - 17-06-2014, 01:36 AM
RE: HELP: EGP Buttons - by Cobra - 17-06-2014, 08:45 AM
RE: HELP: EGP Buttons - by Alanzote - 17-06-2014, 01:27 PM
RE: HELP: EGP Buttons - by Blackhawk - 17-06-2014, 03:37 PM
RE: HELP: EGP Buttons - by Alanzote - 17-06-2014, 04:56 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.