T3D 1.1 Beta 2 - AIPlayer->getAimObject needs an argument - RESOLVED
by Richard Marrevee · in Torque 3D Professional · 08/16/2010 (8:04 pm) · 3 replies
Build: 1.1 Beta 2
Platform: Windows XP, 32 bit
Target: GamePlay
Issues: The function AIPlayer->getAimObject() now requires an argument when executed from script. Browsing through source-code in AIPlayer.cpp gives me the impression that this is not required (wasn't required in previous beta/release anyway.
Steps to Repeat:
1. Launch the game
2. Add a new AIPlayer.
3. Call getAimObject() on this new AIPlayer
Suggested Fix:
In aiPlayer.cpp change the line:
Platform: Windows XP, 32 bit
Target: GamePlay
Issues: The function AIPlayer->getAimObject() now requires an argument when executed from script. Browsing through source-code in AIPlayer.cpp gives me the impression that this is not required (wasn't required in previous beta/release anyway.
Steps to Repeat:
1. Launch the game
2. Add a new AIPlayer.
3. Call getAimObject() on this new AIPlayer
Suggested Fix:
In aiPlayer.cpp change the line:
DefineEngineMethod( AIPlayer, getAimObject, S32, (S32 param),,.... into DefineEngineMethod( AIPlayer, getAimObject, S32, (),,....and rebuild.
About the author
Started programming in 1984 on an Oric, when time progressed switched to MSX, Amiga and finally the Windows PC with T3D. Now developing an epic fantasy game: The Master's Eye. Creator of the DoorClass pack and VolumetricFog pack @ richardsgamestudio.com
Associate David Montgomery-Blake
David MontgomeryBlake