Notices

Assigning a targetname to a player via AddOutput?  Thread Tools Reply
Old 08-12-2011, 10:07 PM   #1
VenomAK
L1: Registered
 
VenomAK is offline
Posts: 4
Thanks: 0
Thanked: 0

Question Assigning a targetname to a player via AddOutput?


I'm working on a map and what's troubling me is that I'm trying to make it so if a player touches a trigger, the trigger then does AddOutput on the !activator using the parameter "targetname chosenred" (which has worked in the past). I stopped mapping for a while and came back to it, and tried this method and for some reason I keep getting this error...

Quote:
AddOutput input fired with bad string. Format: <output name> <targetname>,<inputname>,<parameter>,<delay>,<ma x times to fire (-1 == infinite)>
I've tried it like this:
OnStartTouch !activator,AddOutput,targetname chosenred,0,1

Is that correct or am I doing something wrong? I'd really appreciate some help.
 
Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 08-12-2011, 10:17 PM   #2
A Boojum Snark
Toraipoddodezain Mazahabado
 
A Boojum Snark's Avatar
 
A Boojum Snark is offline
Posts: 4,308
Thanks: 112
Thanked: 4,497

Default Assigning a targetname to a player via AddOutput?


OutputTargetInputParameter
OnTrigger!activatorAddOutputtargetname chosenred

That's how it should be put into the entity properties, I'm not sure if you said you tried that first, and the second thing was another try? But anyway that should work.

__________________
(>^_^)>---[] Mapper Kirby says you must get:
Ultimate Mapping Resource Pack! UPDATED for Steampipe!

 
Reply With Quote
Old 08-13-2011, 12:21 AM   #3
VenomAK
L1: Registered
 
VenomAK is offline
Posts: 4
Thanks: 0
Thanked: 0

Default Assigning a targetname to a player via AddOutput?


Yes I tried that but not with OnTrigger it seems that with any other output it doesn't work. Just tried it with OnTrigger and it works perfectly. Thank you for the help.
 
Reply With Quote
Old 08-13-2011, 10:09 AM   #4
A Boojum Snark
Toraipoddodezain Mazahabado
 
A Boojum Snark's Avatar
 
A Boojum Snark is offline
Posts: 4,308
Thanks: 112
Thanked: 4,497

Default Assigning a targetname to a player via AddOutput?


I didn't even notice that, actually. I just copied the table from another post where I had used OnTrigger. It should work with any output, as I have used it in the past. But if OnTrigger suits your needs then great.

__________________
(>^_^)>---[] Mapper Kirby says you must get:
Ultimate Mapping Resource Pack! UPDATED for Steampipe!

 
Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply

Tags
addoutput, player, targetname

Previous Thread Next Thread
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 03:46 AM.