Home   Help Search Login Register  

Author Topic: So do I get the gig?!  (Read 536 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain Crunch

  • Members
  • *
So do I get the gig?!
« on: 29 Apr 2003, 17:17:37 »
Ah! How I wish I knew how to script properly!!! :-\

It sure is a lot of fun but to build a descent mission... Well, I get desperate!

I have several tutes and reference manuals and all that but nothing that explains the script language in details. (Well at least I haven't found detailed enough manuals to make me get it right, I might be dumb!)

Is there any manuals out there to help poor people like me who wanna build great missions???

Another question,

      In my mission, I drive a car along a road and come to a road block. Three units are at the road block post, and an empty UAZ. The UAZ blocks the road as well as two soldiers, and the third soldier is on the side of the road.

      What I've desperatly been trying to do the last two days is to get the soldier who's on the side of the road to walk up beside my car in a however maner that will look real since he will be talking to me. What I mean is the little f***ing worm often takes off like flies on shit and speaks to me sometimes from twenty meters away. And on top of that he sometimes even looks in another direction! >:( >:( >:( >:( >:( >:( Not to forget that the car doesn't always stop at the same exact place.

I get out the car and kill all of 'em to appease my anger.  ::)

Then, as if that was not enough, another soldier, one standing on the street,
is scripted to get in the UAZ and drive it away from my face. Well he does get in the UAZ but by disappearing from his position and reappearing beside the UAZ!

I don't remember downloading any magician unit addon!!!

And thats the part where I stopped scripting further and tried to fix what was wrong. It's been a circus, I fix "this" and "that" gets wrong!!

If anyone dares to help me, I attach the script in question for You to look at. It will be looking no good since the last hours I've spent on it were bloody.

If it turns out my mission is fully fonctional, I'll even give Your name to the hero of the mission. ;D

Thank You
« Last Edit: 29 Apr 2003, 17:22:39 by Captain Crunch »
Back to the forest!

deaddog

  • Guest
Re:So do I get the gig?!
« Reply #1 on: 29 Apr 2003, 17:30:57 »
Try this:

replace :

GateGuard01 DoMove GetPos GateCar
~5
GateGuard01 Action ["GetIn Driver", GateCar]

with
gateguard01 assignasdriver gatecar
[gateguard01] ordergetin true



If you want a unit to walk instead or run set its behaviour to "safe" or "careless"

Without seeing the mission that's all I can tell you.


PS:

the ~.001 is unnecessary.  OFP cannot wait that short of time.  It takes longer to process the ~ statement than .001second.  I'm not sure what the minimum time it can successfully wait but on my computer it's surely not .001sec.  I have a P4, 2Ghz system.  :)
« Last Edit: 29 Apr 2003, 17:34:56 by deaddog »

B-2-0

  • Guest
Re:So do I get the gig?!
« Reply #2 on: 29 Apr 2003, 17:43:32 »
Crunch,  you now realise that the hero of your mission is gonna be called DeadDog, don't you?! :P ;D

deaddog

  • Guest
Re:So do I get the gig?!
« Reply #3 on: 29 Apr 2003, 17:51:10 »
Will that be Private deaddog or General deaddog ??  ;D

Let us know if those commands help.  

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:So do I get the gig?!
« Reply #4 on: 29 Apr 2003, 18:38:27 »
deaddog is right about timing.   Triggers only check themselves every 0.5 seconds or so, so there is rarely any point in having a loop much faster than that.

As far as scripting is concerned, I strongly recommed that you read

  • snYpir's Friendly Introduction to Code Snippets
  • Johan Gustafsson's Guide to Scripting
  • "Scripting Topics" section of the official command reference


and I think Devilchaser's tute has a scripting section, though I'm not sure.   All in the Ed Depot of course.
Plenty of reviewed ArmA missions for you to play

Offline Captain Crunch

  • Members
  • *
Re:So do I get the gig?!
« Reply #5 on: 29 Apr 2003, 19:20:25 »
Christ! No, :'( it doesn't work.

  I can't say your wrong though, DeadDog. You've seen the script, it's a total mess!  :-[

  Ite, I think I'm gonna spare You guys some and I'm gonna take more time to learn how to script before I come back here and bother.  ;)

Scripting is extremely time consuming! Damn this morning I was asking myself how I was going to script my breakfast!!! :-X If You know what I mean!

And don't worry DeadDog, I'm still going to name the hero DeadDog!!!
(If You've nothing against that ofcourse!)

Cheers!
Back to the forest!

deaddog

  • Guest
Re:So do I get the gig?!
« Reply #6 on: 29 Apr 2003, 19:38:49 »
Post your mission.sqm file so I can look at it.

The problem can only be one of two things:  A fuse or something else.  ;D

Offline Captain Crunch

  • Members
  • *
Re:So do I get the gig?!
« Reply #7 on: 30 Apr 2003, 17:57:24 »
Hi! Sorry for the late response. Hope You still wanna take a look at the mission!

 I've read the tutes(again) and tried again to get my mission working as I wish it to but it just wont work. I'm about to give up scripting and learn how to play "Microsoft Internet spades"

The mission has already several other scripts in it as well as sounds and addons. I can't post it here so I'll send it to your e-mail adress. Would this be OK?

 The script from yesterday looks very messy now though. Several letters and numbers strangely appeared in the script as I was unmercyfully banging my head on the keyboard in despair!  ;D (Ofcourse I've fixed it now and it still dont work)

I'd really appreciate You to help me on that one.

Back to the forest!