Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://github.com/wiremod/wire/wiki/Expression-2#Entity_Discovery
But I recommend testing out the below answer first...
From: https://github.com/wiremod/wire/wiki/Expression-2#Entity
It looks like the "entity(N)" function might be what you want to set "tgtEnt" with, if you know the unique ID number
(e.g. from the Nadmod tool)
I would do it by adding an extra option alongside the "name/class/model" you would have "id"
So (after you edited your E2 chip) your commands could look like:
!fire:1:id:456
Try:
!fire:1:class:gmod_thruster
against a bog standard non-wiremod "aircraft"
This shows you the "class/type" that you can use with the "class" based version of the command:
!fire:1:class:your_prop_type
You will need to select a type thats:
A) Unique enough to define / pick out your targets
B) Is not a part of the missile - so it doesnt chase it's tail :)
E.g.
"prop_wire_thruster" may not be a good idea, as the missile has one!
...although the plain old GMod keypad thruster "prop_thruster" may be ok...
and "prop_physics" is basically everything else that moves...
You could weld a unique item to your target if its not already a unique type.
Link to addon for checking names:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=159298542
HaVe A gOoD dAy
https://developer.valvesoftware.com/wiki/List_of_entities#NPC_entities
PS: The chopper can't be killed with explosives!
-- you can also use wildcards (*)
To shoot any random NPC...
!fire:1:class:npc*
And this is the command to shoot yourself :) just click & spawn new missiles far away.
is a complete command to go and attack a basic NPC
They are used to tell the missile to search for a player name OR a class of gmod object.
E.g a player could have the name "npc_gman"
If they missile accepts the command it hides the chat from others so you are not spamming the server.
If you misspell it or if the missile is not spawned, then it will go to normal chat - so team chat may be safer than global.
If you are extra paranoid, you could change the "!fire" command to "!love" in the E2 chip. :)
Dont forget the "1" as its the default ID of the missile (Still to implement setting of IDs)
I've added some text in the main description to describe the breakdown of the message.