I've recently been learning functions thanks to snYpirs tutorial, but have come across a problem.
As you said (snYpir) , i tried to write the function myself which was obviously wrong, so I went to the link in the functions library and copy-and-pasted the written function there. there's the problem.
When I copy and pasted the function and saved it and alt-tabbed back into flashpoint i radio'ed him to get out but all I got was a problem with the "if" part of the If-Then-Else. It reads like this:
// is the unit in a vehicle?
If (jeep _soldier != _soldier) then
{
"jeep" is my vehicle and "soldier" is my unit but flashpoint returns an error unknown operator with the _soldier that comes after jeep. I did copy-and-paste it so I'm guessing that others might have had the same problem.
Any help would be appreciated.
Thnx,
Hauk