Page 1 of 1

Pawn Weapons

Posted: Fri Jun 01, 2007 4:42 pm
by Masta_J
Sup guys, sorry for the double post, forgot to add this question to the last one. How do I get my player pawn (genericplayer) to have a weapon and pick up or have multiple wepons? I've added my weapon model to the "SetWeapon" command in Spawn Order, but still no weapon.... I've searched the manual and the forums and found nothing. Much Appreciated

Posted: Fri Jun 01, 2007 10:26 pm
by Jay
SetWeapon(char* SectionName);

SectionName must be the name of a section in Pawn.ini. Like pawns themselves. The only difference is this line at the end of the pawn declaration declaration:
type = weapon

Example:

[Sword]
...
...
...
type = weapon


I hope this makes it clear enough.


More than one weapon is also possible, but you will need this release:
http://www.realityfactory.info/forum/vi ... php?t=2138

Notice the then changed SetWeapon-command:
SetWeapon(char* sectionname, int slot);
and also make sure that the slot number 0 is always filled. (its a bug i am trying to get rid of but otherwise it works good)
You can use up to 16 weapons on one pawn when you use this release.