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
One quick question...
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: One quick question...

(09-28-2011, 09:51 AM)Khyrpa Wrote: "ScriptArea_*"
or
for(int i=0;i<4;i++) AddEntityCollideCallback("", string"ScriptArea_"+i, string& asFunction, bool abDeleteOnCollide, int alStates);
(sigh... I don't remember if that means from 1 to 4 or 1 to 3...)

Some things dont work with that asterix (*) so you have to use the for(int... thing.
When doing the for loop, it is more useful/easier to do:
for(int i=1; GetEntityExists("ScriptArea_"+i); i++)
when the asterix isn't an option.
(This post was last modified: 09-28-2011, 11:46 AM by Apjjm.)
09-28-2011, 11:46 AM
Find


Messages In This Thread
One quick question... - by Mooserider - 09-28-2011, 07:56 AM
RE: One quick question... - by Khyrpa - 09-28-2011, 09:51 AM
RE: One quick question... - by Apjjm - 09-28-2011, 11:46 AM
RE: One quick question... - by Mooserider - 09-28-2011, 10:50 AM



Users browsing this thread: 1 Guest(s)