View Single Post
Old 28-04-21, 08:34   #401
saintjunia
Student
 
saintjunia's Avatar
 
Join Date: Jul 2020
Location: Riga, Latvia
Posts: 159
Default

Quote:
Originally Posted by justin View Post
That's what I thought, but it doesn't seem to work. It still works with a GT_KEYBOARD_CODE globaltrigger (such as reading code 57 for the Space Bar), but doesn't work for KEY2_USE_FLARE.

Is there a specific CINV command that reads when the Flare shortcut is being called?
Code:
$2000,53,$000B
this is the flipeffect for simulating "use flare" command. And in my script you can use PLS either from inventory or by pressing TAB, because I want her to be able to use a flare by choice -

Code:
;========================= PLS =========================================

Pickup= 2, Flashlight,  $0000,$0150,$0000,-$5000,$0000,$000a
AddEffect=  1, ADD_LIGHT_FLAT, FADD_CONTINUE_EMIT, JOINT_ABDOMEN, 0, -128, 175, -1, -1, 13, -1, MIST_COL_WHITE
GlobalTrigger=     1, FGT_SINGLE_SHOT_RESUMED, GT_CONDITION_GROUP, -1, 1, 2, -1
TriggerGroup=      1, $8000,15,$010C; PRESS TAB ------------ [Use Flare] is pressed, was $8000, 10, $010D
TriggerGroup=      2, $8000, 0, $2C, >		;test if light on
                   $5000,65,$0131, $2000,71,$1F5C, $2000, 235, $0, >               ; effect OFF + sfx 308 + GBA1.b0 = 0  
                   TGROUP_ELSE + $5000,65,$0130, $2000,71,$1F5D, $2000, 234, $0    ; effect ON + sfx 307 + GBA1.b0 = 1
GlobalTrigger=     2, IGNORE, GT_USED_INVENTORY_ITEM, 232, IGNORE, 12, IGNORE
TriggerGroup=      12, $2000,53,$000B
Maybe this will help =)
__________________
woah, das ist so philosophisch :o // working on TR: Shadows of the Past
saintjunia is offline   Reply With Quote