symysgames Posted November 25, 2016 Share Posted November 25, 2016 Hello Why is it that when I use the command in (command "erase" (entlast)) it selects the entity but does not erase it (is still in mode select) and if I use (command "erase" (entlast) "") the program erases the entity but ends up by crashing giving me the message "bade argument type" while it is still in mode select. Thank you Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 26, 2016 Share Posted November 26, 2016 (command "erase" (entlast) "") is correct, what is the next part of code doing ? Quote Link to comment Share on other sites More sharing options...
symysgames Posted November 29, 2016 Author Share Posted November 29, 2016 Thank you for your answer. yes I made a mistake in my coding , I found it by going through my coding step by step by inserting (princ 1) , (princ 2).... between each line of code, and found where it was failing. Is there a way of doing this automatically ? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 30, 2016 Share Posted November 30, 2016 I just copy and paste each line to command line sometimes but there is a bit of an art to doing this pasting multiple lines. Use Vlide and make sure DEBUG break on error is ticked on, then use the "last break source" helps to show which line, you can also check variables values looking for Nil by using "View inspect" You can also step 1 line at a time. Others like Lee-mac will give you far better advice about using Vlide than me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.