Home   Help Search Login Register  

Author Topic: forgotten command  (Read 1762 times)

0 Members and 1 Guest are viewing this topic.

Offline Tom

  • Members
  • *
  • BMPs are my nemesis
forgotten command
« on: 05 Sep 2006, 08:11:25 »
I've lost the command that makes the AI plant a C4 charge and detonate it. I had it before, but like i said, its gone! I tried looking around for it but i cant seem to find it. What is it again?

Thanks in advance
"In times of war, do not crave honour. Do not pray for order, amity or surrender. Ask only that you outlive the day."

karantan

  • Guest
Re: forgotten command
« Reply #1 on: 05 Sep 2006, 15:08:03 »
You mean a satchel charge, yes?

To put it:

Code: [Select]
_unitname fire ["put", "pipebomb"]
To activate it:

Code: [Select]
_unitname action ["touchoff"]

Offline Tom

  • Members
  • *
  • BMPs are my nemesis
Re: forgotten command
« Reply #2 on: 06 Sep 2006, 07:44:26 »
yes thats the one. Thank you ;)
"In times of war, do not crave honour. Do not pray for order, amity or surrender. Ask only that you outlive the day."

Offline schuler

  • Contributing Member
  • **
Re: forgotten command
« Reply #3 on: 08 Sep 2006, 04:35:09 »
hey guys do those go in waypoints or tiggers?  cheers
Semper Fi

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: forgotten command
« Reply #4 on: 08 Sep 2006, 08:55:57 »
As written - neither.  Any variable that starts with an underscore is a variable local to the particular script it is used in.  So as written
Code: [Select]
_unitname fire ["put", "pipebomb"]is only for use within a script.

Changing the _unitname for the actual name of a specific unit will then enable you to use these instructions in waypoints and triggers.

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: forgotten command
« Reply #5 on: 08 Sep 2006, 08:56:45 »
they can go in both. see attached missionette.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re: forgotten command
« Reply #6 on: 08 Sep 2006, 09:41:03 »
My guess is that bedges was writing his reply as I was writing mine, and that he had not seen my comments.  I would also guess that the missionette uses names in triggers and waypoints without the underscore :)

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: forgotten command
« Reply #7 on: 08 Sep 2006, 14:01:42 »
Someone upload that demo as a pipebomb tutorial.
urp!

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: forgotten command
« Reply #8 on: 08 Sep 2006, 14:10:54 »
rgr wilco.  :check:

Offline schuler

  • Contributing Member
  • **
Re: forgotten command
« Reply #9 on: 10 Sep 2006, 06:32:27 »
ok  :)  yes, thanks the _unitname for scripts anwered a lingering ?.  :thumbsup:  i see now,
  and ap fire ["put", "pipebomb"] in waypoints works fine. cheers guys!!!
Semper Fi

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: forgotten command
« Reply #10 on: 10 Sep 2006, 11:26:11 »
I strongly recommend not to use such a common name
like ap.

Why?

Because ap is used in lot of tutorials and you never know
if an addonmaker who is not so experienced in scripting
didn't have the same idea with a global name for
an attached script to his addons.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline schuler

  • Contributing Member
  • **
Re: forgotten command
« Reply #11 on: 10 Sep 2006, 11:59:05 »
@chris death WOW that is a habit ive gotten into! although i really name player and team as ap1 "player" the ap2, ap3, so on. is that ok
           :(
Semper Fi

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: forgotten command
« Reply #12 on: 10 Sep 2006, 12:07:54 »
It's ok, if you think that you're the only one
who got that brilliant idea.  :D

Nah, what is most close to avoid using a
common variable name? To name it with
numbers behind, so that you can create
more variables of the same kind for similar
objects.

Best would be to create a tag and register
it so that you can provide all your variables and names with
a unique personal looking.

That way you can be sure that noone is using
same names like you.

Unfortunately tag registration is not available
at the moment but will be up again.

That's the only way to go if you ask me.  ;)

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted