Game Development Community

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:
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


#1
08/16/2010 (8:33 pm)
Logged as TQA-825 for the QA team to verify.
#2
08/18/2010 (8:51 pm)
Bug confirmed.
#3
09/02/2010 (5:04 pm)
Fixed in 1.1 Beta 3.