View Single Post
  #6  
Old 09-15-2010, 11:49 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Jiroxys7 View Post
Why can't Stefan allow triggerclient and triggerserver in classes anyway?
This is giving me a headache..
You are talking about classes like they are something that they aren't. A class in GScript is essentially an include; you can join a class to a weapon, in which case the class code will work like it's in a weapon, or you can join a class to an NPC, in which case the class code will work like it's in an NPC.

When joining to a weapon you can triggerclient and triggerserver normally, even from inside the class (like triggerserver("gui", this.name, …)). When joining to an NPC of some kind you probably want more to send triggeractions onto the NPC's coordinates.
__________________
Skyld
Reply With Quote