Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toymulti()
- {
- level._effect[ "fx_elec_sparks_sm_int_os_factory_zmb" ] = "share/raw/fx/electric/fx_elec_sparks_sm_int_os_factory_zmb";
- allthetoys = GetEntArray( "toymulti", "targetname" );
- foreach( toy in allthetoys )
- {
- toy thread givetoygold();
- }
- }
- function givetoygold()
- {
- self waittill( "trigger", player );
- target_toy = GetEnt( self.target, "targetname" );
- PlayFX( level._effect["fx_elec_sparks_sm_int_os_factory_zmb"], self.origin );
- self PlaySound("zmb_cha_ching");
- player.score += 500;
- target_toy Delete();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement