Project X Forums
http://px.worms2d.info/forum/

Current WIND speed in script (Helicopter)
http://px.worms2d.info/forum/viewtopic.php?f=13&t=2049
Page 1 of 1

Author:  -raffie- [ Sun Aug 09, 2015 5:38 pm ]
Post subject:  Current WIND speed in script (Helicopter)

Is it possible to get the wind speed in script? In first instance I would like to have the Helicopter slightly affected by wind, but it would also have potential for other stuff.

I understand it is possible for a CGObject to use 'WindFactor' to set how much it is affected by wind, but in this case the Helicopter is a CWorm so this wont work?

Author:  StepS [ Wed Aug 26, 2015 12:09 pm ]
Post subject:  Re: Current WIND speed in script (Helicopter)

CWorm inherits from CGObject. Therefore, a CWorm has everything that CGObject has.
The current wind speed I think is in Env->Wind.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/