Disable Thread!
Moderator: Moderators
-
chrisjbooth2001
- Colour Sergeant
- Posts: 77
- Joined: Thu Dec 18, 2003 12:57 am
Disable Thread!
Ok ive got a thread, which is turned on at round start..
I need to know is there a command where i can disable a thread, like
(threadname) disablethread?
I need to know is there a command where i can disable a thread, like
(threadname) disablethread?
-
chrisjbooth2001
- Colour Sergeant
- Posts: 77
- Joined: Thu Dec 18, 2003 12:57 am
Ok im still playing but the box that the script is will make the axis lose all guns and become immune when they touch it.. But i need to use a trigger which will disable it...
This is my script..
//------------------------------------------
axis_end:
//------------------------------------------
while (parm.other.dmteam == "axis" isTouching $axisend)
{
parm.other immune suicide falling explosion explodewall thrownobject grenade rocket impact
parm.other immune bullet fast_bullet vehicle fire flashbang on_fire gib impale bash
parm.other immune shotgun aagun landmine
parm.other takeall
}
end
Where have i gone wrong, and are there any opposite commands i can do?
Opposite meaning, takeall - giveall
immune - unimmune? is it a word? lol
This is my script..
//------------------------------------------
axis_end:
//------------------------------------------
while (parm.other.dmteam == "axis" isTouching $axisend)
{
parm.other immune suicide falling explosion explodewall thrownobject grenade rocket impact
parm.other immune bullet fast_bullet vehicle fire flashbang on_fire gib impale bash
parm.other immune shotgun aagun landmine
parm.other takeall
}
end
Where have i gone wrong, and are there any opposite commands i can do?
Opposite meaning, takeall - giveall
immune - unimmune? is it a word? lol
-
chrisjbooth2001
- Colour Sergeant
- Posts: 77
- Joined: Thu Dec 18, 2003 12:57 am
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Code: Select all
while (parm.other.dmteam == axis && parm.other isTouching $axisend)
{
// Bla bla bla
}
end-
dcoshea
- Colour Sergeant
- Posts: 94
- Joined: Thu Mar 04, 2004 3:00 am
- Location: Sydney, Australia
- Contact:
We already discussed this in your "Immune" thread.chrisjbooth2001 wrote:And any suggestion for give/take weapons?
If a thread does something, you can't just "disable" it and everything the thread does/did gets automatically reversed. You need to reverse all those actions the thread took. In the thread I linked to above there are quite a few suggestions about what to do regarding weapons. The last one is to continually force the player to holster their weapon. Of course, when you stop doing that the player could unholster, so disabling the thread lets them unholster, but it would be best to unholster for them, which you'd have to do yourself - it won't be done for you by "disabling the thread".But I want it so i use the trigger and the area with the box then lets you have weapons.. Ie by disabling the thread..
Regards,
David



