Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Show FX not the same for the teams?

  1. #11
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by IzNoGoD View Post
    self is not defined.
    Please try reading.

  2. #12
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    I don't understand what you mean.
    I did

    Code:
    player = getent("player","classname");
    playfx(level._effect["carepackage"], player.origin);

  3. #13
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    player is an array, or your script should already crash due to the fact that there are multiple players

  4. #14
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Just look, I want to play an fx, and if you are as example on killstreak 5, then this thread will be called: playfxforcarepackage()

    Code:
    playfxforcarepackage()
    {
    	player = getent("player","classname");
    	while(1)
    	{
    		playfx(level._effect["carepackage"], player.origin);
    		wait 0.5;
    	}
    }
    And this doesn't work. I just want to play an FX, which all can see this fx and it should spawn on the player origin, it should play loop, but it should't follow the player, just spawn on the player origin and play there loop. And at one point, I want to stop it. Here I have got problems

  5. #15
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Loveboy View Post
    Just look, I want to play an fx, and if you are as example on killstreak 5, then this thread will be called: playfxforcarepackage()

    Code:
    playfxforcarepackage()
    {
    	player = getent("player","classname");
    	while(1)
    	{
    		playfx(level._effect["carepackage"], player.origin);
    		wait 0.5;
    	}
    }
    And this doesn't work. I just want to play an FX, which all can see this fx and it should spawn on the player origin, it should play loop, but it should't follow the player, just spawn on the player origin and play there loop. And at one point, I want to stop it. Here I have got problems
    It doesn't work because you don't know how to script. It's getEntArray(), not getEnt() = there are more than 1 player hence you use getEntarray() (plural) and not getEnt() (singlular).

    This is basic stuff. If you don't know the difference now, given that you've been scripting for Call of Duty for over 1 year, you should really give it up, because you are not getting the very basics. In other words, you don't have an aptitude for COD scripting. Take up knitting instead. It's much easier.

  6. #16
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Quote Originally Posted by Tally
    Take up knitting instead. It's much easier.
    Lol, just like my grandma, started scripting for CoD2 and ended up in this kind of shit ;xd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •