Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: wistler on May 08, 2009, 10:14:25 am
-
I get a error: not a number whenever I put in the X Y Z coordinates, yet despite this they work fine in the mission. Am i doing it wrong?
[attachment deleted by ninja]
-
make it an integer... I'm guessing no floating point numbers are allowed.
And the mission is playing ok despite this error in Fred?
-
Yep. The SEXP system can only ever deal with integers. That's why sometimes it suddenly has arguments in milliseconds rather than seconds (like send-message-list).
-
thanks thats fixed the problem. Why would it give a problem message but work fine? Does the game just ignore the decimal at the end?
-
I can't remember what it would do without looking at the code but release builds usually either try correct in some way or display an error message.
Debug builds are much more likely to complain.
-
Additional advise :
I came to appreciate the folölowing method .
Place WAYPOINTS and name them like "camera 1", "camera 2", .....
The sexp would look like this :
- set camera position
- getobjectx
- camera1
- getobjecty
- camera1
- getobjectz
- camera1
Like this, you can easily try out different camera positions. You dont have to deal with numbers in the EVENTS editor, you simply have to drag and drop the waypoints around until you are satisfied with the results.
There is a cutscene article in the wiki I think. I wrote it and it contains this tip as well.