Jump to content

Little Help With A Script Please, Nothing Too Hard


Orcculus

Recommended Posts

Just after some information really, i've search the whole of the scripting section of the wiki (some interesting stuff as it goes) and i can't find anything on this..

 

what i want to do is mod a stat down to 10 (without using setActorValue) so i made a variable hold the original stat, then i did set newspeed to origspeed - 10 so that i now have a value to minus from the original stat to get it down to 10 ya see? so i tried modActorValue speed -newspeed and it didn't like that very much at all.. i'm trying to learn which is why i don't just want to use setActorValue. So if anyone could give me the solution and explain it to me that would be great thank you.

 

Also is there anyway to force a player to walk for a given period of time? just a force walk command or something.

Link to comment
Share on other sites

Where are you placing the ModActorValue call? If it's not in a script for an actor, you might want to try player.ModActorValue or refName.ModActorValue (where refName is a reference to an actor, if you dont want to mod the players stats).

 

I could be wrong, but it's worth a try.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...