Page 1 of 1
Weapon addons
Posted: Sat Sep 20, 2008 8:35 pm
by darksmaster923
Say, if you have scripted weapons, but my sniper rifle has no scope, but thats because you want the scopes to be interchangeable. But the problem is you can only attack one weapon to a pawn, and that weapon is taken by the sniper rifle. Any ways to do this? I don't really want to get Jay's addons cause its not really up to date
Re: Weapon addons
Posted: Sat Sep 20, 2008 8:40 pm
by Juutis
The manual:
AttachAccessory(string SlaveName);
AttachAccessory(string SlaveName, string MasterName);
Attach the accessory defined in Pawn.ini as SlaveName to this Pawn's actor. The attached actor will use the same animation as its master.
Attach the accessory defined in Pawn.ini as SlaveName to the actor of the entity MasterName. The attached actor will use the same animation as its master.
DetachAccessory(string SlaveName);
DetachAccessory(string SlaveName, string MasterName);
If the accessory defined in Pawn.ini as SlaveName is attached to this Pawn's actor then it will be detached from the master actor.
If the accessory defined in Pawn.ini as SlaveName is attached to the actor of the entity MasterName then it will be detached from the master actor.
Re: Weapon addons
Posted: Sun Sep 21, 2008 3:40 am
by darksmaster923
I assume this was added in RF76?
Re: Weapon addons
Posted: Sun Sep 21, 2008 10:37 am
by bernie
I assume this was added in RF76?
That is correct DM