Actors
#1

Kalcor says:
Quote:

The 0.2.5 actors were not synced. What you are seeing in those videos is essentially just GTA:SA's single player AI. I could go and add everything from single player to SA-MP including all the street peds, but it wouldn't synced, so what's the point?

We never released anything to do with 0.2.5 actors. What you see in those videos was leaked by someone passwording a beta team member on this forum. That stuff was added for testing only and I figured out quickly it would not work well with the way SA-MP was designed. What those videos aren't showing you is that the actors could only drive for around 200 meters around the player.

I added the actor system in 0.3.7 because I could see someone wanting to complete their server scripted casino but they didn't want to set up a whole bunch of NPCs. I had no intention of extending it beyond that for 0.3.7.

SA-MP will probably never have peds that can roam around freely, or drive cars by AI. It has already been attempted many times by different people, including myself. There have been various hacks to do bots/extended NPCs and they haven't been that popular. There has never been a great enough demand from the servers that hold most of SA-MP's players to focus time and resources on AI.

Do actor synchronized for all players is heavy / impossible, I agree.
But can create player-actor.

Something like this:

Code:
//PlayerActor
native CreatePlayerActor(playerid,modelid,Float:X,Float:Y,Float:Z,Float:Rotation,name[]);
native DestroyPlayerActor(playerid,PlayerActorid);
native SpawnPlayerActor(playerid,PlayerActorid);
native PlayerActorMoveTo(playerid,PlayerActorid,movetype,Float:X,Float:Y,Float:Z);
native PlayerActorEnterVehicle(playerid,PlayerActorid,vehicleid,passenger);
native PlayerActorExitVehicle(playerid,PlayerActorid,vehicleid);
native PlayerActorDriveVehicleTo(playerid,PlayerActorid,vehicleid,Float:X,Float:Y,Float:Z,Float:Speed,drivetype,Float:MinAltitude=0.0,Float:MaxAltitude=0.0);

//PlayerActorinfo
native SetPlayerActorPos(playerid,PlayerActorid,Float:x,Float:y,Float:z);
native SetPlayerActorPosFindZ(playerid,PlayerActorid,Float:x,Float:y,Float:z);
native GetPlayerActorPos(playerid,PlayerActorid,&Float:x,&Float:y,&Float:z);
native SetPlayerActorFacingAngle(playerid,PlayerActorid,Float:ang);
native GetPlayerActorFacingAngle(playerid,PlayerActorid,&Float:ang);
native SetPlayerActorInterior(playerid,PlayerActorid,interiorid);
native GetPlayerActorInterior(playerid,PlayerActorid);
native SetPlayerActorHealth(playerid,PlayerActorid,Float:health);
native GetPlayerActorHealth(playerid,PlayerActorid,&Float:health);
native SetPlayerActorArmour(playerid,PlayerActorid,Float:armour);
native GetPlayerActorArmour(playerid,PlayerActorid,&Float:armour);
native SetPlayerActorTeam(playerid,PlayerActorid,teamid);
native GetPlayerActorTeam(playerid,PlayerActorid);
native SetPlayerActorColor(playerid,PlayerActorid,color);
native GetPlayerActorColor(playerid,PlayerActorid);
native SetPlayerActorSkin(playerid,PlayerActorid,skinid);
native GetPlayerActorSkin(playerid,PlayerActorid);
native SetPlayerActorWeapon(playerid,PlayerActorid,weaponid);
native ResetPlayerActorWeapon(playerid,PlayerActorid);
native SetPlayerActorName(playerid,PlayerActorid,constname[]);
native GetPlayerActorState(playerid,PlayerActorid);
native GetPlayerActorWeapon(playerid,PlayerActorid);
native GetPlayerActorKeys(playerid,PlayerActorid,&keys,&updown,&leftright);
native GetPlayerActorName(playerid,PlayerActorid,constname[],len);

//PlayerActorcontrols
native PutPlayerActorInVehicle(playerid,PlayerActorid,vehicleid,seatid);
native GetPlayerActorVehicleID(playerid,PlayerActorid);
native GetPlayerActorVehicleSeat(playerid,PlayerActorid);
native RemovePlayerActorFromVehicle(playerid,PlayerActorid);
native PlayerActorApplyAnimation(playerid,PlayerActorid,animlib[],animname[],Float:fS,opt1,opt2,opt3,opt4,opt5);
native PlayerActorClearAnimations(playerid,PlayerActorid);

//PlayerActorconditionals
native IsPlayerActorConnected(playerid,PlayerActorid);
native IsPlayerActorInVehicle(playerid,PlayerActorid,vehicleid);
native IsPlayerActorInAnyVehicle(playerid,PlayerActorid);

//VirtualWorlds
native SetPlayerActorVirtualWorld(playerid,PlayerActorid,worldid);
native GetPlayerActorVirtualWorld(playerid,PlayerActorid);
This is very useful, even if it was only for one player. It would be good with it to from single-player missions. There is no need to synchronize for all players.
Reply


Messages In This Thread
Actors - by ATomas - 30.04.2015, 11:59
Re: Actors - by AIped - 30.04.2015, 12:07
Re: Actors - by ATomas - 30.04.2015, 12:12
Re: Actors - by AIped - 30.04.2015, 12:20
Re: Actors - by RaeF - 30.04.2015, 12:29
Re: Actors - by ATomas - 30.04.2015, 12:30
Re: Actors - by Emmet_ - 30.04.2015, 12:43
Re: Actors - by ATomas - 30.04.2015, 12:55
Re: Actors - by AIped - 30.04.2015, 13:03
Re: Actors - by dominik523 - 30.04.2015, 13:38
Re: Actors - by AIped - 30.04.2015, 13:45
Re: Actors - by AIped - 30.04.2015, 15:00
Re: Actors - by Neutralneu - 30.04.2015, 15:05
Re: Actors - by AIped - 30.04.2015, 15:12
AW: Actors - by NaS - 30.04.2015, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)