Page 1 of 1
get ISBEINGTRANSPORTED
Posted: 15 May 2007, 18:07
by SpikedHelmet
Just would like some .cob code to see if a unit is currently being transported. Would be very useful for transports that do not hide the units they're carrying, ie, TA air transports and 1944's towed guns.
And only get, mind; no set.
Posted: 15 May 2007, 18:47
by FLOZi
/me slaps you.
All our arty scripts already do this using SetSFXOccupy, and have done for the past 4 years.
Posted: 15 May 2007, 21:43
by zwzsg
In your bos:
Code: Select all
static-var isbeingtransported;
setSFXoccupy(terrain)
{
isbeingtransported=(terrain==0);
}
Then wherever you can just do:
Or whatever.
For reference, in TA, the argument to setSFXoccupy were:
- 0 -> Transported: Unit is being loaded
- 1 -> Sea: Unit does not have upright=1 and is going into sea. Or unit has upright=1 and is going into shore. (From unloading, or ground, or deep sea for upright unit)
- 2 -> Sea: Unit has upright=1 and goes into deep sea. (From shore, or unloading)
- 3 -> ????
- 4 -> Land: Unit is being created, goes from sea (or shore if upright=1) to dry ground
Not sure Spring works 100% like that, but at least the 0 should.
Posted: 15 May 2007, 23:20
by FLOZi
'blah blah sometimes i feel like noboby is even reading my posts blah blah'

Posted: 15 May 2007, 23:40
by Guessmyname
Who said that?
Posted: 16 May 2007, 00:31
by smoth
FLOZi wrote:text
I am sorry what did you say?