Refrencing skills

Posted By: Trooper119

Refrencing skills - 04/29/06 00:52

Moved to scripting forumn DELETED
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 04:45

Moved to scripting forumn DELETED

I made a related post "Global Variables" here, how am I supposed to bring one skill to the other, and then use the same relative idea to give it back to redefine variables? I want to make this a plugin though so I don't want to half to transport the whole code into one big .wdl

Moved to scripting forumn DELETED
Posted By: keinPlan86m

Re: Refrencing skills - 04/29/06 05:36

Trooper, why do you use a new skill for the handle? Every Entity and all have a engine intern handle, which you can read out and safe.
Look in the Manual after handle and ptr_for_handle.

test your code with the following line:

you = scan_entity (newcoordinates, newwidth);

Without the you = i always got the same error, so maybe this could help.

And after that writh something like:

if(you)
{handleingid = you._handle_id; }

To be sure that the you pointer is set.
I hope i could help you.
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 13:34

The new skill is not THE handle, it is simply the handle's number so it can be refrenced later in another .wdl, i'll try your code and let you know what happens
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 13:44

Moved to scripting forumn DELETED
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 13:59

Moved to scripting forumn
Posted By: keinPlan86m

Re: Refrencing skills - 04/29/06 16:14

have you tested:


you = scan_entity (newcoordinates, newwidth);

The "you =" is important.
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 16:30

Deleted
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 16:59

Deleted
Posted By: Trooper119

Re: Refrencing skills - 04/29/06 17:36

This is really a scripting problem I'll move this to that forumn
© 2024 lite-C Forums