game_player_equip crash Created 15 years ago2009-02-27 17:35:31 UTC by nik_cool22 nik_cool22

Created 15 years ago2009-02-27 17:35:31 UTC by nik_cool22 nik_cool22

Posted 15 years ago2009-02-28 07:53:33 UTC Post #263420
Ive got a problem with game_player_equip. I am trying to make a crate spawn some objects by triggering a game_player equip when it breaks. In gameplay when i break the crate the game crashes.
Whats wrong and how do i fix it???

the game_player_equip got these keyvalues:
targetname-gameplayerequip
weapon_shotgun-15
weapon_hornetgun-1
weapon_357-10
Posted 15 years ago2009-02-28 07:59:13 UTC Post #263433
Yeah try it. some entities are only triggerable with that flag checked, though i don't have any experience with this entity. (I read the enity guide and it looks like you set it up corretly)

You can also try the forum search and possibly an example map in the map vault
Captain Terror Captain Terrorwhen a man loves a woman
Posted 15 years ago2009-02-28 10:37:33 UTC Post #263442
func_breakable has a "Spawn on break" if I remember correctly, use that to set whatever weapon should spawn when it breaks.

gpe doesn't seem to work with func_breakable, although it seems to work perfectly fine with "trigger_"-entities. (don't forget to check the "Use only" flag in the gpe)
Posted 15 years ago2009-02-28 10:55:05 UTC Post #263443
i know that it has a "spawn on break" but i cant use that if i want it to spawn more than one thing. Ive done what captain terror said but i didnt find anything that could help me. Even when i do check the 'use only' flag it still crashes the game.
Posted 15 years ago2009-02-28 10:59:33 UTC Post #263444
Try a monstermaker in the box that gets triggered after you destroy it. Set it's 'monster to spawn' to weapon_shotgun. make another for everything you want to spawn, including ammo.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-02-28 11:02:46 UTC Post #263445
ill try that...
Posted 15 years ago2009-02-28 11:49:27 UTC Post #263448
it didnt work...
Posted 15 years ago2009-02-28 12:16:56 UTC Post #263449
Create a trigger (e.g. trigger_multiple) inside the func_breakable (make sure people can't reach it while the box is still solid), set the trigger_multiple to trigger the gpe (don't forget to check the "Use only"-flag in the gpe).
Posted 15 years ago2009-02-28 12:30:54 UTC Post #263450
trigger_once, unless the box respawns.
Notewell NotewellGIASFELFEBREHBER
Posted 15 years ago2009-02-28 12:44:49 UTC Post #263452
Try putting your map in the Problem Maps section. Someone will figure it out... I might take a look too = )
Captain Terror Captain Terrorwhen a man loves a woman
Posted 15 years ago2009-02-28 16:49:34 UTC Post #263457
ive finally figured out what to do the problem is solved but ill never find out how to use game_player_equip in a singleplayer map...
Posted 15 years ago2009-02-28 17:14:12 UTC Post #263458
What? what was the problem?
Captain Terror Captain Terrorwhen a man loves a woman
Posted 15 years ago2009-02-28 17:53:01 UTC Post #263460
well i know that a game_player_equip gives the item that triggers it the weapon. So if a box triggers the equip, the game will equip the box with the weapon. Which doesn't happen.
Tetsu0 Tetsu0Positive Chaos
Posted 15 years ago2009-02-28 18:26:38 UTC Post #263464
i didnt fix the problem. i just placed some weapons inside the crate.
Posted 15 years ago2009-02-28 19:14:14 UTC Post #263466
I think using the monstermaker entity for this is the best way to get what you want.

It really does work, provided that you set it up correctly, which i think you did'nt...
You must be logged in to post a response.