Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preloads doesnt really work :S
neocrawler Offline
Member

Posts: 57
Threads: 19
Joined: Sep 2011
Reputation: 1
#1
Preloads doesnt really work :S

Heey everyone,
I was kinda getting ennoyed that preloads doesnt really work.
Proberly I do it wrong heres and example how I do it.
Quote: AddEntityCollideCallback("Player", "ScriptArea_4", "Collide_ScriptArea_4", true, 1);

void Collide_ScriptArea_4(string &in asParent, string &in asChild, int alState)
{
PreloadParticleSystem("ps_break_wood.ps");
}
(This post was last modified: 05-11-2012, 02:00 AM by neocrawler.)
05-11-2012, 01:58 AM
Website Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#2
RE: Preloads doesnt really work :S

Preloads don't spawn a particle system, you're looking for:

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

source:
http://wiki.frictionalgames.com/hpl2/amn..._functions

Preloading is only done in the OnEnter function, and I don't necessarily know the purpose of it - I do believe it removes the lag that happens when events fire.

05-11-2012, 02:07 AM
Find
neocrawler Offline
Member

Posts: 57
Threads: 19
Joined: Sep 2011
Reputation: 1
#3
RE: Preloads doesnt really work :S

Okay thanks didnt know that Big Grin
05-11-2012, 02:13 AM
Website Find




Users browsing this thread: 1 Guest(s)