Author Topic: Change players aim server-sided  (Read 633 times)

Is there a way to change the players aim from a server sided script?

I need them to look down for half a second and then back up again.
Read something about changing to an AI, but is that the only way?
And if it is, how would I go about it?
Any addons using a similar principle I can use as a reference?

i think the old bf3 weapon packs had a function or string that slightly moved the player's aim in certain directions to simulate recoil, you could reference that

you can rotate the players view to the right and left but not up and down
Code: [Select]
%amount = 0.3;
%player.setTransform(getWords(%player.getTransform,0,5) SPC getWord(%player.getTransform(),6)+%amount);

this is what the bf3 pack did

the ai thing could work for up and down though

the ai thing could work for up and down though

buut AIConnections don't exist and you can't exactly change a Player to/from an AIPlayer

you can rotate the players view to the right and left but not up and down
Code: [Select]
%amount = 0.3;
%player.setTransform(getWords(%player.getTransform,0,5) SPC getWord(%player.getTransform(),6)+%amount);

this is what the bf3 pack did

Yeah, I though it was using that function for recoil. It is probably one of the easiest ways to do that.
But that won't help me with my problem though.


Anyway, I have tested the gamemode I am making and it doesn't really bother too much.
So I'll probably leave it without the aim changing thingy.
« Last Edit: December 24, 2015, 09:00:59 PM by honytawk »