I "printed" the final var and this was what it shows
Quote:
error{ errorText = "Can't go there" }
the point is... that var (final) returns 1 when success, and a error array when fails...
but I can't get the fail status on an if statement.
thanks
Author
Message
*Edwards
Joined: 29 Dec 2007 Posts: 85 Location: Montreal, Canada
Posted: Wed Apr 02, 2008 12:45 am Post subject:
Code:
var final := MoveCharacterToLocation( who, jump_x, jump_y, jump_z );
if( final.errortext )
SendSysMessage( who, "The error is: "+final.errortext );
endif
If you would get the statut you can always use:
If( !final ) // means that final has failed.
If( final ) // if success, do something...