Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Shooting and killing
Shooting and killing
2002-05-10, 4:14 AM #1
What is the cog command to make somebody shoot something at a cutscene (like blaster fire, turret fire or rail charge) and when it hits a stormtrooper (or a tusken or something) it dies?
"Tickets, please."
"You don't have to see our tickets."
"What?"
"These are not the tickets you're loking for."
2002-05-10, 7:25 AM #2
From JK specs try this (but there might be some other function needed also):

AiSetFireTarget() Control
Sets the firing target for an ai
Use: AiSetFireTarget(thingref,Target thingref);

Then to kill the thing in the cutscene use:

DamageThing();
Damages a thing.
Use: damage = DamageThing(thing,flex damage,flag,damage causething); returns amount of damage taken

For example:
Code:
Symbols
message damaged
thing AIkilled
flex damage=0 local
end

code
damaged:
  damage = DamageThing(AIkilled, 2000, 0x2, GetSourceRef());
  return;
end




------------------
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to 
patient observation than to any other reason. -Isaac Newton
Sylvicolus JK homepage
If I have ever made any valuable discoveries, it has been owing more to
patient observation than to any other reason. -Isaac Newton
2002-05-10, 4:09 PM #3
DamageThing() damages a thing, it hurts the thing, it doesn't return a damage value. In the damaged: part, use Damage = GetParam(0) [http://forums.massassi.net/html/wink.gif]

------------------
The Sniper Missions. Current project, The X Project
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!