I ma very hard, I know, but I have a question.
SetScriptController(): What does esactly this command?
It is similar to Attach()
And Detach()?
Someone can explain all these 3 commands (and other related or similar)?
SetScriptController() Detach() Attach()
SetScriptController is used for the reputation system. The mobile you set as the controller will be held accountable for all helpful/harmful actions caused in that script.
Attach attaches a script to the character. There can never be more than 1 script attached to a character. Checking if a script can attach or not can be useful in making it so a player can't do more than one thing at a time.
Detach will take an attached script off of the character.
Attach attaches a script to the character. There can never be more than 1 script attached to a character. Checking if a script can attach or not can be useful in making it so a player can't do more than one thing at a time.
Detach will take an attached script off of the character.
In past I used Detach() (but not using Attach() first) thinking that so if player logout script continue to run. I am wrong?
What happen to script if player logout?
- After an Attach() ?
- After a Detach() ?
- If I do not use Attach() or Detach() ?
There is a command to use to force script stop when player logout or to force script continue if player logout?
What happen to script if player logout?
- After an Attach() ?
- After a Detach() ?
- If I do not use Attach() or Detach() ?
There is a command to use to force script stop when player logout or to force script continue if player logout?
-
mr bubbles
- Grandmaster Poster
- Posts: 120
- Joined: Thu Jan 18, 2007 2:34 am
-
mr bubbles
- Grandmaster Poster
- Posts: 120
- Joined: Thu Jan 18, 2007 2:34 am