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
Something wrong with my script[Solved]
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#3
RE: Something wrong with my script

if(SetEntityActive("armor1") == false)

That line is wrong because you can't use SetEntityActive like that. The SetEntityActive argument is void SetEntityActive(string &in asEntity, bool abActive). The void part is bold because that's the primary issue here.

Void indicates that it doesn't return any value. You are asking if armor1 is false, but the original function doesn't return any value (hence void).

"Veni, vidi, vici."
"I came, I saw, I conquered."
10-12-2014, 01:54 AM
Find


Messages In This Thread
RE: Something wrong with my script - by PutraenusAlivius - 10-12-2014, 01:54 AM
RE: Something wrong with my script - by Datguy5 - 10-12-2014, 10:28 AM



Users browsing this thread: 1 Guest(s)