OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CopyrightPhilly on 21 Jun 2005, 06:13:22

Title: wind/flag movment direction?
Post by: CopyrightPhilly on 21 Jun 2005, 06:13:22
is it possable to find what direction the flag texture is blowing?

cheers,
Phil
Title: Re:wind/flag movment direction?
Post by: StonedSoldier on 21 Jun 2005, 11:05:06
ive think i remeber seeing this question crop up on here not long ago,

there are two similar ways to detect wind direction

first idea, in theory parachutes are effected by wind direction so put one high up and compare its position a few moments later, do the appropriate maths and im sure you'll get your wind direction

Another idea is use the drop (http://www.ofpec.com/editors/comref.php?letter=D#drop) command to create a particle, particles i believe are more obviously effected by wind, compare its position like a second or two later and apply the same maths to calculate the angle it moved
Title: Re:wind/flag movment direction?
Post by: CopyrightPhilly on 22 Jun 2005, 07:56:53
thanks StonedSoldier

i used the first one, made a chute then after 5 seconds, worked out the direction from its start to finish

cheers,
Phil