Coding

 Reply to this postStart new topic

Spawning an object

xzytro
post Mar 22 2014, 06:56 PM
Post #1


The New Guy!

Posts: 2
Joined: 9-June 13



Hi,

A few days ago, i decided to script a cleo in order to change something in my character's look. So i decided to create a simple bag which will attach on the actor. Then, i have figured out that i can not drive any vehicles with the bag attached, so i made some deactivation ways. And afterwards, things started not to go as i wanted.

I know creating an object looks rather simple, but in this codeflow somehow, destroy_object just doesn't work. Do i forget something ?

http://pastebin.com/eg0H2q2h

Forgot to mention, in order to understand where the code fail would be, i've placed some messages starting with "debug:" between the actions, so that if i don't get one message, i understand the failed spot. However in this codeflow, i can get all the debug messages, while the object was not getting deleted once the script is deactivated.

EDIT After two days : I've fixed the problem. It was because of the exceeded usage of labels, so many "then else end" etc. Reformulated the codeflow by adding repeat...until and avoided "then else end", so it's functional once again.
http://pastebin.com/F2hvRCx3

This post has been edited by xzytro: Mar 24 2014, 11:37 AM
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: