December 03, 2024, 04:01:26 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This forum provides RSS feed. To query recent posts use
this url
.
More...
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Overwrite Game Methods
« previous
next »
Pages: [
1
]
Print
Author
Topic: Overwrite Game Methods (Read 3454 times)
0 Members and 1 Guest are viewing this topic.
Azrael
Regular poster
Karma: 9
Offline
Gender:
Posts: 155
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
Gender:
Posts: 5683
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.
Azrael
Regular poster
Karma: 9
Offline
Gender:
Posts: 155
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
I try again, tnx
Logged
Azrael
Regular poster
Karma: 9
Offline
Gender:
Posts: 155
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
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Overwrite Game Methods