Creating an NRaas project Creating object with custom script ingame with CreateObjectOutOfWorl method
- Chain_Reaction
- Site Admin
- Reactions:
- Posts: 7595
- Joined: December 30th, 2011, 6:00 pm
- Contact:
- icarus_allsorts
- Reactions:
- Posts: 213
- Joined: March 8th, 2012, 6:00 pm
- icarus_allsorts
- Reactions:
- Posts: 213
- Joined: March 8th, 2012, 6:00 pm
So I've revisited the mod and followed JunJay's suggestion to redo my custom object class from scratch, this time inheriting from GameObject and pretty much the same interfaces as Bar.Glass and...
It WORKED! Not only was the bar glass created, it correctly carried the custom object class like I intended! *~Does Happy Dance~*
I'm GUESSING that the class has to directly inherit from either GameObject or IScriptObject in order to be successfully created with this method. But wtv, I'm just so glad it finally works! Thanks a bunch guys, especially JunJay for pointing me in the right direction
It WORKED! Not only was the bar glass created, it correctly carried the custom object class like I intended! *~Does Happy Dance~*
I'm GUESSING that the class has to directly inherit from either GameObject or IScriptObject in order to be successfully created with this method. But wtv, I'm just so glad it finally works! Thanks a bunch guys, especially JunJay for pointing me in the right direction
You're welcome, glad to hear it worked
Most of the time it's always best to do what EA does, and if they add new objects like that, then we should follow it, the reason being that they have some sort of background code that we can't see, some common dll picking up on stuff we have no clue about and sometimes the problem can be the most unsuspected thing, like the name of a method or a particular naming criteria for the class.
Most of the time it's always best to do what EA does, and if they add new objects like that, then we should follow it, the reason being that they have some sort of background code that we can't see, some common dll picking up on stuff we have no clue about and sometimes the problem can be the most unsuspected thing, like the name of a method or a particular naming criteria for the class.
- icarus_allsorts
- Reactions:
- Posts: 213
- Joined: March 8th, 2012, 6:00 pm
You'd think I'd learn my lesson by now, this is the I don't know how many-th time something I've attempted has blown up just because I thought I could get away with saving code and just inheriting from large classes. (Though I did learn that I COULD get away with it for Interaction Definitions by overriding the CreateInstance method, but I guess that just made me cocky )
- Chain_Reaction
- Site Admin
- Reactions:
- Posts: 7595
- Joined: December 30th, 2011, 6:00 pm
- Contact: