Porting question ... scriptThis() replacement function.

Expanding and utilizing the engine via C++.
2 posts Page 1 of 1
Posts: 35
Joined: Sun Sep 04, 2016 11:54 pm
by kent » Thu Sep 29, 2016 7:48 pm
I'm porting a resource from TGE that utilizes a function SceneObject::scriptThis() which has been removed from the engine.

The routine is just:

Code: Select all

const char* SceneObject::scriptThis() { return Con::getIntArg(getId()); }
Short term, putting that back in sceneObject does what I want... but obviously the function was taken out for a reason.

Is SimObject::getIdString() the correct replacement function?
Steering Committee
Steering Committee
Posts: 817
Joined: Tue Feb 03, 2015 9:49 pm
by JeffR » Thu Sep 29, 2016 11:35 pm
Yeah, getId or getIdString should be what you want.
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest