Creare Videogiochi - Game Developer
problema visualizzazione hud script - Versione stampabile

+- Creare Videogiochi - Game Developer (https://www.making-videogames.net/giochi)
+-- Forum: Fps Creator e GameGuru Italia (https://www.making-videogames.net/giochi/Forum-Fps-Creator-e-GameGuru-Italia)
+--- Forum: Script fpi e lua FPSC GameGuru (https://www.making-videogames.net/giochi/Forum-Script-fpi-e-lua-FPSC-GameGuru)
+--- Discussione: problema visualizzazione hud script (/thread-problema-visualizzazione-hud-script)



problema visualizzazione hud script - Zapetino - 28-07-2011

[spoiler]
Codice:
;Artificial Intelligence Script

;Header

desc          = Colt 1911 pickup

;Triggers
;Artificial Intelligence Script

;Header

desc          = Weapon Pickup

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\COLT_1911_TAKE_HUD.PNG,hudname=COLT_TAKE,hudhide=1,hudmake=display,state=1

:state=1,plrdistwithin=40:hudshow=COLT_TAKE,state=2
:state=2,plrdistwithin=40,scancodekeypressed=18:playertake,hudunshow=COLT_TAKE,hudfadeout=COLT_TAKE
:state=2,plrdistwithin=50:hudunshow=COLT_TAKE,hudfadeout=COLT_TAKE


;End of Script
[/spoiler]

praticamente questo script quando ti avvicini all'arma ti dovrebbe mostrare una hud (fatta da me) e poi se si preme E si prende l'arma (in questo ca so la 1911)
solo che quando mi avvicino non mi esce la hud ma l'arma me la prende lo stesso se schiaccio E
dove ho sbagliato ??


RE: problema visualizzazione hud script - Tax78 - 29-07-2011

Eccolo dovrebbe andare, anzi vĂ  Smile
Citazione:;Artificial Intelligence Script

;Header
desc = Weapon Colt 1911 pickup

;Triggers

Confusedtate=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\huds\COLT_1911_TAKE_HUD.PNG ,hudname=COLT_TAKE,hudhide=1,hudmake=display,state=1

Confusedtate=1,plrdistwithin=40:hudshow=COLT_TAKE,state=2
;press 18=E
Confusedtate=2,plrdistwithin=40,scancodekeypressed=18:playertake,hudunshow=COLT_TAKE
Confusedtate=2,plrdistfurther=50:hudunshow=COLT_TAKE,state=0

;End of Script
Se ci son problemi .....

Tax


RE: problema visualizzazione hud script - Zapetino - 29-07-2011

grandissimo funziona alla grande!!
puoi spiegarmi cosa sbagliavo ??