Add fake actor weapon
#1

Anybody know how to set a FAKE weapon in a actor hands?

I was thinking in something to get actor position
Код:
new Float:x, Float:y, Float:z;
GetActorPos(actorid, x, y, z);
And create a object in hands of actor using this animation:
Код:
ApplyActorAnimation(actorid, "SHOP, "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
Using:
Код:
stock GetWeaponModel(weaponid)
{
	switch(weaponid)
	{
	    case 1:
	        return 331;

		case 2..8:
		    return weaponid+331;

                case 9:
		    return 341;

		case 10..15:
			return weaponid+311;

		case 16..18:
		    return weaponid+326;

		case 22..29:
		    return weaponid+324;

		case 30,31:
		    return weaponid+325;

		case 32:
		    return 372;

		case 33..45:
		    return weaponid+324;

		case 46:
		    return 371;
	}
	return 0;
}
Just to pretend that the actor was using the weapon...
Reply


Messages In This Thread
Add fake actor weapon - by luccagomes15 - 07.02.2017, 15:26
Re: Add fake actor weapon - by luccagomes15 - 08.02.2017, 21:30
Re: Add fake actor weapon - by Jaxson - 08.02.2017, 23:09
Re: Add fake actor weapon - by maikons - 08.02.2017, 23:52
Re: Add fake actor weapon - by Wolfe - 09.02.2017, 03:41
Re: Add fake actor weapon - by AndreiWow - 09.02.2017, 09:34
Re: Add fake actor weapon - by Jaxson - 09.02.2017, 14:07
Re: Add fake actor weapon - by AbyssMorgan - 09.02.2017, 14:31
Re: Add fake actor weapon - by maikons - 09.02.2017, 15:57
Re: Add fake actor weapon - by luccagomes15 - 10.02.2017, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)