PDA

View Full Version : Serious Script Request


Cerberus
07-09-2001, 09:25 PM
I want a toggle that when i fire a weapon and hold the fire key (ie the elf) it fires, when I release it, it switches to a specified weapon (ie disk launcher)

DeLukas
07-10-2001, 01:33 PM
I miss read that. so let me edit. . .I will start looking into how weapon firing works and see if i can work out a timer.

Cerberus
07-10-2001, 06:07 PM
dont really want a timer, what I need it to make the press action fire the weapon and the release action change the weapon. should be a key bind thing

DeLukas
07-10-2001, 08:51 PM
This is mousefire:

function mouseFire(%val)
{
$mvTriggerCount0 += $mvTriggerCount0 & 1 == %val ? 2 : 1;
}

That is what happens when you press the fire key. It can work basically as a toggle.

You can call mouse fire once turns it on shooting, call mouse fire again to turn it off. (That is how automissile works)

Problem is I do not know what creates continual fire because it is not called twice when you press the mouse button.

So I need to play with it for a little while so I can think about how it works. Till then I am just guessing at what I need.