Alternate fire + problems
by Tom · in Torque Game Engine · 08/13/2006 (5:48 pm) · 1 replies
Hi,
ok like many, i needed a second fire mode for my weapons.
so i implemented the second fire resource:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5546
i did everything but it doesn't seem to work at all, and the original author is unreachable.
it speaks of copying trigger blocks and changing them to secondtrigger, i looked through the enigne code and found out that in shapebase.cc triggers are also discussed,
1. my question, do i need to change it in ther also? im not really good at c++
2. where are the $mvTrigger commands? what i mean is how would i bind a key to the alt fire mode of a weapon, ? mvsecondtrigger++ ??? or how?
3. did anyone actually implemented this resource and got it to work?
any input, ideas, or help is greatly appreciated
* this is how the alt mode is called in the weapon script:
then altfire has an script call function called onaltfire
ok like many, i needed a second fire mode for my weapons.
so i implemented the second fire resource:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5546
i did everything but it doesn't seem to work at all, and the original author is unreachable.
it speaks of copying trigger blocks and changing them to secondtrigger, i looked through the enigne code and found out that in shapebase.cc triggers are also discussed,
1. my question, do i need to change it in ther also? im not really good at c++
2. where are the $mvTrigger commands? what i mean is how would i bind a key to the alt fire mode of a weapon, ? mvsecondtrigger++ ??? or how?
3. did anyone actually implemented this resource and got it to work?
any input, ideas, or help is greatly appreciated
* this is how the alt mode is called in the weapon script:
// Ready to fire, just waiting for the trigger stateName[2] = "Ready"; stateTransitionOnNoAmmo[2] = "NoAmmo"; stateTransitionOnTriggerDown[2] = "Fire"; stateTransitionOnSecondTriggerDown[2] = "AltFire";
then altfire has an script call function called onaltfire
Torque Owner Tom