
EmmanuelCD
Joined: Jan 7, 2015
End my suffering
|
Posted: Jul 15, 2015 02:14 PM
Msg. 1 of 4
Sorry guys, the thing is I am making a FF map, I already have a lives sistem script, but a was going to add a credit sistem where you can buy guns, I thought to use a the stock device equipment holo control, so i use this script ( script continuos Shotgun (sleep_until (device_get_power Shotgun1 1)) (player add equipment start true) (sleep 1800)
Blablabla something like that, but device "Shotgun1" switch but nothing happen, so i put initially off, but then I didnt switch, then I put initially on and it gave me the gun but gun and still I couldnt switch off the device. I dont have the computer right now so i dont have the exact scripts. Anyone does know what im doing wrong or another method to do this?
|
|
|

NeX
Joined: Apr 11, 2013
|
Posted: Jul 15, 2015 04:44 PM
Msg. 2 of 4
Quote: --- Original message by: Soldier_AE Three priests die and go to heaven. At Heaven's Gates, they are welcomed by St. Peter. "Because you devoted your entire lives to God, you are automatically allowed in heaven", he says. "But I will give you the opportunity to confess an unforgiveable sin."
The first priest steps forward and says: "I once touched a young boy's pns." St. Peter smiles and says: "that's not an unforgiveable sin. You may still enter heaven."
The second priest cautiously steps forward and says: "I once had sex with two young boys. But, I got caught and spent five years in prison. Since then, I have been praying to God, asking Him to forgive my sins and allow me in heaven." St. Peter says: "God has heard your prayers and has forgiven your sins. You may still enter heaven."
Suddenly, the third priest falls down on his knees and screams: "Father, I have sinned! I raped and killed five young boys and buried them in the woods. Nobody ever found out, but I couldn't live with the guilt anymore, so I killed myself. I beg you, please don't send me to hell!" St. Peter looks at him and says: "No problem, you may still enter heaven." The priest looks up and asks: "Are you sure"? St. Peter nodds and replies: "Yeah, there are about a thousand other priests here who want to know how the fck you got away with it!" Don't go around deliberately shítposting
|
|
|

OrangeJuice
Joined: Jan 29, 2009
Documentation and debug.txt
|
Posted: Jul 15, 2015 04:49 PM
Msg. 3 of 4
^ that waste of copypaste bandwidth T.T..
why not device set power false afterwards?
|
|
|

EmmanuelCD
Joined: Jan 7, 2015
End my suffering
|
Posted: Jul 15, 2015 06:21 PM
Msg. 4 of 4
Quote: --- Original message by: Soldier_AE Three priests die and go to heaven. At Heaven's Gates, they are welcomed by St. Peter. "Because you devoted your entire lives to God, you are automatically allowed in heaven", he says. "But I will give you the opportunity to confess an unforgiveable sin....blablabla That wasnt funny, i asked help, not jokes Quote: --- Original message by: OrangeJuice ^ that waste of copypaste bandwidth T.T..
why not device set power false afterwards? sorry man, can you explain yourself? just in case here are my exact scripts (global short lives 7)
(global short credits 2)
(script continuous gameover (begin (if (= lives 0) (game_lost)) ) )
(script continuous shotgun (sleep_until (= (device_get_power shotgun1) 1) 15) (player_add_equipment (unit (list_get (players) 0)) shotgun true) (sleep 300) )
(script continuous anti-cheat (sleep 10) (set cheat_omnipotent false) (set cheat_medusa false) )
(script continuous life_lost (begin (set cheat_deathless_player true) (sleep_until (<= (unit_get_health (unit (list_get (players) 0))) 0.01) 1) (player_enable_input false) (fade_out 1.00 0.00 0.00 60) (sleep 60) (set lives (- lives 1.00)) (fade_in 0.00 0.00 0.00 60) (object_teleport (unit (list_get (players) 0)) spawn) (player_add_equipment (unit (list_get (players) 0)) start true) (player_enable_input true) ) )
(global short points1 0)
(script continuous ai_system (sleep 100) (sound_impulse_start spartin115\firefight\firefight none 1) (ai_place wave1) (ai_follow_target_players wave1) (ai_attack wave1) (sleep_until (= (ai_living_count wave1) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (sleep 60) (sound_impulse_start spartin115\firefight\wepon_drop none 1) (object_create_containing gun) (ai_place wave2) (ai_follow_target_players wave2) (ai_attack wave2) (sleep_until (= (ai_living_count wave2) 0) 15) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave3) (ai_follow_target_players wave3) (ai_attack wave3) (sleep_until (= (ai_living_count wave3) 0) 15) (sleep 10) (set credits (+ credits 2.00) ) (sound_impulse_start spartin115\firefight\round_compleat none 1) (sleep 30) (sound_impulse_start spartin115\firefight\wepon_drop none 1) (object_create_containing gun) (object_create_containing ty) (ai_place wave4) (ai_follow_target_players wave4) (ai_attack wave4) (sleep_until (= (ai_living_count wave4) 0) 15) (sleep 10) (set credits (+ credits 2.00) ) (sound_impulse_start spartin115\firefight\round_compleat none 1) (ai_place wave5) (ai_follow_target_players wave5) (ai_attack wave5) (sleep_until (= (ai_living_count wave5) 0) 15) (sleep 10) (set credits (+ credits 2.00) ) (sound_impulse_start spartin115\firefight\round_compleat none 1) (sleep 30) (sound_impulse_start spartin115\firefight\wepon_drop none 1) (object_create_containing gun) (ai_place wave6-ghost) (ai_follow_target_players wave6-ghost) (ai_attack wave6-ghost) (sleep_until (= (ai_living_count wave6-ghost) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave7) (ai_follow_target_players wave7) (ai_attack wave7) (sleep_until (= (ai_living_count wave7) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave8) (ai_follow_target_players wave8) (ai_attack wave8) (sleep_until (= (ai_living_count wave8) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave9) (ai_follow_target_players wave9) (ai_attack wave9) (sleep_until (= (ai_living_count wave9) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave10) (ai_follow_target_players wave10) (ai_attack wave10) (sleep_until (= (ai_living_count wave10) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave11) (ai_follow_target_players wave11) (ai_attack wave11) (sleep_until (= (ai_living_count wave11) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave12) (ai_follow_target_players wave12) (ai_attack wave12) (sleep_until (= (ai_living_count wave12) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave13) (ai_follow_target_players wave13) (ai_attack wave13) (sleep_until (= (ai_living_count wave13) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) (ai_place wave14-ghost) (ai_follow_target_players wave14-ghost) (ai_attack wave14-ghost) (sleep_until (= (ai_living_count wave14-ghost) 0) 15) (sleep 10) (sound_impulse_start spartin115\firefight\round_compleat none 1) (set credits (+ credits 2.00) ) )
(script continuous seting (begin (hud_set_timer_time lives credits) (pause_hud_timer true) ) ) just in case heres are my device´s configuration Holo Control Equipment Name: shotgun1 initially off checkd power group: power on : power- on values are initially value = 0 nothing else check d
|
|
|
| |
|
|
 |
|