c4271605 wrote:I'm confused. Did you just mix STL with GSC?
I'm just saying that perhaps he thought of std::vector when he thought of the term "vector".
c4271605 wrote:I'm confused. Did you just mix STL with GSC?
S3VDIT0 wrote:Think can vehicle and helicopter to move independently at a predetermined position? Without using: MoveTo/MoveX/MoveY/MoveZ
Slvr99 wrote:S3VDIT0 wrote:Think can vehicle and helicopter to move independently at a predetermined position? Without using: MoveTo/MoveX/MoveY/MoveZ
You could set Origin.X/Y/Z to move it if you don't want to use moveTo
Code: Select all
self Vehicle_SetSpeed( 60, 25 );
self setyawspeed( 75, 45, 45 );
Code: Select all
Function.AddMapping("remotecontrolvehicle", 33256);
S3VDIT0 wrote:Slvr99 wrote:S3VDIT0 wrote:Think can vehicle and helicopter to move independently at a predetermined position? Without using: MoveTo/MoveX/MoveY/MoveZ
You could set Origin.X/Y/Z to move it if you don't want to use moveTo
I would love to, but it crashes the server...
And moveTo moves the helicopter in the wrong direction. In the game scripts the movement of helicopters to be something like this:Code: Select all
self Vehicle_SetSpeed( 60, 25 );
self setyawspeed( 75, 45, 45 );
There are no such functions in InfinityScript. Of course, you could useCode: Select all
Function.AddMapping("remotecontrolvehicle", 33256);
but it is the abuse of a helicopter!
Code: Select all
"veh_speed"
"veh_pathspeed"
"veh_transmission"
"veh_pathdir"
"veh_pathtype"
"veh_topspeed"
"veh_brake"
"veh_throttle"
S3VDIT0 wrote:Thanks, I will experiment!
Here's another question, this Field or Call?
Slvr99 wrote:S3VDIT0 wrote:Thanks, I will experiment!
Here's another question, this Field or Call?
Those are Fields =P
A few of them are set as strings and others are ints.
S3VDIT0 wrote:Slvr99 wrote:S3VDIT0 wrote:Thanks, I will experiment!
Here's another question, this Field or Call?
Those are Fields =P
A few of them are set as strings and others are ints.
Damn.
These same Fields in the file Entity.cs forgot about it. I checked it recently, some crashes, even Vector3/Parametrs/int/string checked there are NO results, perhaps it was necessary for one to choose the right Fields, but not massively as it was for me
Code: Select all
for (int i = 0; i < 2048; i++)
{
Entity entity = Call<Entity>("getentbynum", i);
using (StreamWriter sw = new StreamWriter("scripts\\AllEntity.txt", true))
{
sw.WriteLine(/* Ex: entity.GetField<string>("name")> */);
}
}
Users browsing this forum: No registered users and 9 guests