Page 1 of 1
what replaces EntityPhysicBody()?
Posted: Mon Nov 28, 2016 10:13 pm
by Damion12
I have a small program that gets compiler warnings of a depreciated function EntityPhysicBody(). What replaces it? The only reference I can find in help is that it was added to the engine3D.
Re: what replaces EntityPhysicBody()?
Posted: Tue Nov 29, 2016 1:12 am
by Demivec
It was replaced by CreateEntityBody() in Version 5.40 LTS.
CreateEntityBody() adds a lot more optional parameters but you should be able to simply rename the function because the first two parameters are the same.
Re: what replaces EntityPhysicBody()?
Posted: Tue Nov 29, 2016 3:29 am
by Damion12
Thank you.
Too bad they didn't leave the depreciated entries in help, with "here's what you should use instead..."
Much appreciated.
Re: what replaces EntityPhysicBody()?
Posted: Tue Nov 29, 2016 3:52 am
by Demivec
There is an entry in the History list where the change was made.
It states "- Changed: EntityPhysicBody() to CreateEntityBody()".
Re: what replaces EntityPhysicBody()?
Posted: Mon Dec 05, 2016 7:34 pm
by Damion12
Demivec wrote:There is an entry in the History list where the change was made.
It states "- Changed: EntityPhysicBody() to CreateEntityBody()".
Silly me -- I looked in "Change" to find out what had changed with it...
Thanks.