The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Couple of Questions
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#1
Couple of Questions

OK, i have a couple of questions,
1. in my map there is a part where i am froze to the spot, while a few visual things happen, after the visuals are over, a few script areas are activated (AddEntityCollideCallback). If One of these areas are activated whilst i am inside it, will the alState be 1? or will it be undefined untill i leave and reenter it?

2. how do i convert an integer into a string and vica versa? eg
void OnStart()
{
           for(int i=0, i<10, i++)
          {
           AddEntityCollideCallback("Player , i  , Collide , False , 1);
          }
AddLocalVarInt("Number" , 0);
}
void Collide(string &in asParent , string &in asChild , int &in alState)
{
SetLocalVarInt("Number" , asChild);
}
in this code i is an integer not a string, so it wont work in the AddEntityCollideCallback, also, asChild is not an integer, so it wont work in the SetLocalVarInt, help?

07-06-2011, 11:53 PM
Find


Messages In This Thread
Couple of Questions - by DRedshot - 07-06-2011, 11:53 PM
RE: Couple of Questions - by MrBigzy - 07-07-2011, 12:20 AM
RE: Couple of Questions - by DRedshot - 07-07-2011, 12:26 AM
RE: Couple of Questions - by Apjjm - 07-07-2011, 01:22 AM
RE: Couple of Questions - by DRedshot - 07-07-2011, 01:26 AM



Users browsing this thread: 1 Guest(s)