Jump to content

Using the command erase


symysgames

Recommended Posts

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

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...