Weapon Problem with RF072A

Topics regarding Scripting with Reality Factory
Post Reply
LHoesch

Weapon Problem with RF072A

Post by LHoesch »

I have a weapon Problem in RF072A!
I had copy the actor file,writing in the weapon.ini,and in the player.ini...

But when I start RF and press the slot number.-> Nothing happened.

Its the same with the Pawn.He didnt fire a projectile,but the script is ok and in the Logfile arent Mistakes.
CAN ANYBODY HELP ME???
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

try one number smaller or larger, i believe larger. i think weapon numbers are really one larger than what you enter.
LHoesch

Post by LHoesch »

I have tried this already. -> Noting!!!
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

where did you get the actor? if its a non-standard one, or one that was made for rf but does not have the right scale/rotation/offset settings, it might be selected but simply not in view. adding a hud element (see manual) for it might help you determine if it's selected.

also, i feel funny asking this, and dont take it rudely, but have you set up a pickup (attribute) or entry in player.ini for it? it might be you dont have it in your inventory.
LHoesch

Post by LHoesch »

The act File is Xanibot.act.
The Script is:
{
Spawn[()
{
Console(true);
AttributeOrder("health",20,"Die");
FindTargetOrder(200,"Alert","health");
SetFOV(360);
HostilePlayer(true);
HostileSame(false);
HostileDifferent(false);
SetGroup("Enemy");
}]

Alert[()
{
AnimateStop("alert",0,"");
NewOrder("Attack");
}]
Attack[()
{
RotateToPlayer("wattack", 160, false, "");
FireProjectile("pistolbullet","HandR",0,0,0,"health","");
Delay("stattack",1,"");
RestartOrder();
}]

Die[()
{
Remove(true);
}]
}

Its from the book Making3dGames with Realityfactory from RF Downloads...
LHoesch

Post by LHoesch »

I have found the mistake.
Its the Bone Name its not HandR.
Its Bip01 R Hand.
LHoesch

Post by LHoesch »

BUT...
The problem with the player weapons is there too.
I have copy the weapon from 072(not072A).
And changing the *.ini files like 072.
But... nothing!
Guest

Post by Guest »

Its ok now! :lol: :lol: :lol:
Im a idiot. :roll: :roll: :roll:
I have forgotten to write a entry in th player.ini file. :!: :!: :!:
Post Reply