Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Overwrite Game Methods  (Read 2968 times)

0 Members and 1 Guest are viewing this topic.

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Overwrite Game Methods
« on: April 04, 2009, 06:39:48 PM »

It's possible to overwrite "Game." methods?

I know it's possible to overwrite others methods (like actor methods), but now i would like to overwrite the "Game.TakeItem" method and, if yes, in which file should i put the new method?

I try something but none works  :-\

Tnx :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Overwrite Game Methods
« Reply #1 on: April 04, 2009, 09:48:34 PM »

You want to override Game methods, therefore you need to put your custom methods into some script attached to Game (typically scripts\game.script, but you can create a new script and attach it).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Overwrite Game Methods
« Reply #2 on: April 05, 2009, 07:37:22 AM »

Tnx Mnemonic, i tried some times ago but without results. Maybe i made some mistakes :P

I try again, tnx :)
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Overwrite Game Methods
« Reply #3 on: April 05, 2009, 12:46:10 PM »

Tnx it works!  ;)

I don't what was wrong the last time, but now it works  :)
Logged
 

Page created in 0.041 seconds with 20 queries.