Home   Help Search Login Register  

Author Topic: SetSpeedMode - Command Or Code?  (Read 798 times)

0 Members and 1 Guest are viewing this topic.

Black Magic

  • Guest
SetSpeedMode - Command Or Code?
« on: 15 Nov 2002, 11:12:26 »
Is it just me or is BIS screwing with my mind and implementing secret code into OFP? I draw your attention for a minute gentlemen, if you will, to, the command, "SetSpeedMode". :wow:  
*Twitches moustache and points at poster with pointing stick* :)
Now when I work this command with a unit name as stated in the Unofficial Command Ref I achieve the intended result. That is, TheWizOfOz setSpeedMode "LIMITED", produces the soldier TheWizOfOz moving in a limited motion. :joystick:
*Fiddles with moustache and puts hand on hips* :beat:
Yet when I try "FULL" the soldier runs at the normal running pace. I mean would you believe it?! It's absurd! >:(
*Pauses for laughs* ;D
So I says to myself I says, "Magic, what you need is the Official Command Ref!". So I takes it out I does, and I look through the documentation and I find the command as being used with groups. "MyGroup setSpeedMode "FULL". :hmm:
*Adjusts monicle* 8)
So I tried this to no avail. I have reason to believe the command is actually used with the individual unit rather than group as after testing I came up with nothing which means the Official Ref got it wrong - tsk tsk. :-X
*Paces up and down* :booty:
Now then, am I doing something wrong here? Does this command just not work with the FULL speed? Should I actually be using a group? Am I an idiot? All these questions and more, answered right after the..... right after someone responds I guess. :-\
P.S. Don't bombard me with crap about "Oh Magic, Magic, Magic. Whatever will we do with you? Dear boy, once again you failed to use your intellect - it's setSpeedMode not SetSpeedMode!". Okay? :P

Bremmer

  • Guest
Re:SetSpeedMode - Command Or Code?
« Reply #1 on: 15 Nov 2002, 14:09:05 »
From the comref

Quote
group setSpeedMode mode
Operand types:
    group: Object or Group
    mode: String
Type of returned value:
    Nothing
Description:
    Set group speed mode. Mode may be one of: "LIMITED" (half speed),"NORMAL" (full speed, maintain formation),"FULL" (do not wait for any other units in formation).

Example:
    groupOne setSpeedMode "LIMITED"

I don't reall understand your trouble. Setspeedmode will work with groups and single units alike. "Full" doesn't mean that the unit will sprint, rather that they will move at normal running pace, but not keep formation to wait for stragglers.

 :-\

Black Magic

  • Guest
Re:SetSpeedMode - Command Or Code?
« Reply #2 on: 16 Nov 2002, 00:49:41 »
Oh. I see. Well in that case, is there anyway to make them sprint? ???

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:SetSpeedMode - Command Or Code?
« Reply #3 on: 16 Nov 2002, 05:47:57 »
try...

unit/group setbehaviour "combat"
unit/group setspeedmode "full"
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Black Magic

  • Guest
Re:SetSpeedMode - Command Or Code?
« Reply #4 on: 16 Nov 2002, 06:21:44 »
Already done that :-\

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:SetSpeedMode - Command Or Code?
« Reply #5 on: 16 Nov 2002, 07:54:19 »
Setspeed mode only works on leaders I beleive. Are you trying to get it to work on units that are not the leader of their respective groups?
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Black Magic

  • Guest
Re:SetSpeedMode - Command Or Code?
« Reply #6 on: 16 Nov 2002, 12:02:07 »
For this particular bit, i'm dealing with inidivual units without any group assignment. ;D

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:SetSpeedMode - Command Or Code?
« Reply #7 on: 16 Nov 2002, 23:21:30 »
Well I guess your SOL then BM!  ;D
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Black Magic

  • Guest
Re:SetSpeedMode - Command Or Code?
« Reply #8 on: 17 Nov 2002, 01:33:02 »
SOL my ass! ;D There must be a way. ::) I'm think of working with the animation "CombatSprintF" or something and manipulating that in a way Tomb (eek) taught me.  :-X