Results 1 to 10 of 12

Thread: Spray (flat model)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by RobsoN View Post
    Ofc,

    fx spawn code:

    PHP Code:
    self playFx(level.robsonTestEffectself.origin); 
    fx precache:

    PHP Code:
    level.robsonTestEffect loadfx("fx/robson.efx"); 
    Using this code:

    Code:
    self playFX( <nameoffx>, <origin> );
    Will incur a runtime error "unknown function". I don't know the technical name for it, but playFX() is one of those script functions which run independently of any entity - be that a world entity or a player entity. Entities cannot run it; they can only be assigned to it.

    You will need to make a player flag out of it and assign it to the playfx() function like this:

    Code:
    self.test = playfx( <nameoffx>, <origin> );

  2. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (13th February 2013)

Posting Permissions

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