Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
proc_kill(4); #200662
04/05/08 08:28
04/05/08 08:28

M
mercuryus OP
Unregistered
mercuryus OP
Unregistered
M



Hi! (lite-c v7.07.6)

"proc_kill(4); beendet alle anderen Instanzen der aktuellen Funktion.."

 Code:
function do_someting_for_all_models() {

  proc_kill(4);   // only one instance
  wait(1);
  ...
}

action act_mymodel() {
  ...
  if(a==b){
    do_someting_for_all_models();
  }
  ...
}


Now I expect, that do_someting_for_all_models(); only exists in one instance, but the actions of the models (act_mymodel()) keep on running.

I figured out proc_kill(4); kills (also) all instances of the calling action.

Re: proc_kill(4); [Re: ] #201131
04/07/08 06:20
04/07/08 06:20
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
Yes, that's right. Reason is that proc_kill was called before and not after the wait(). Put it after the wait and it will work as expected.

Proc_kill(4) kills all instances of the action currently started by the scheduler. This is only identical to the current action when this action encountered a wait() before. I admit that this can be confusing. I'll check if I can improve this.

Re: proc_kill(4); [Re: jcl] #201144
04/07/08 08:20
04/07/08 08:20

M
mercuryus OP
Unregistered
mercuryus OP
Unregistered
M



ah, I see! thanx!


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1