I never did understand these.
In my weapon cog, I'm sending trigger 1 to deactivate all camera cogs.
Weapon cog excerpt:
Camera cog:
In my weapon cog, I'm sending trigger 1 to deactivate all camera cogs.
Weapon cog excerpt:
Code:
selected: player = GetSourceRef(); // Setup the meshes and models. jkSetPOVModel(player, povModel); jkSetWeaponMesh(player, weaponMesh); SetArmedMode(player, 1); weaponpov=CreateThing(povtemp, player); SetThingPos(weaponpov, GetThingPos(player)); AttachThingToThingEx(weaponpov, player, 0x8); SetThingModel(weaponpov, povModel); SendTrigger(1, trigID, 0, 0, 0, 0);
Camera cog:
Code:
# 02_camespecial.cog
# [Grismath]
#======================================================================================#
symbols
message entered
message trigger
sector entSect
thing camera
int on=1 local
int trigID=1
end
#======================================================================================#
code
#--------------------------------------------------------
entered:
if(GetSenderRef()==entSect && on==1) {
SetCameraFocus(0, camera);
}
return;
#--------------------------------------------------------
trigger:
if(GetSourceRef()==trigID) {
on=GetParam(0);
}
return;
#--------------------------------------------------------
end
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
- I saw this thread earlier today and thought that the assigning (or lack thereof) may be the problem, but I wanted to wait until I got home to check the DataMaster before sending you on a wild goose-chase... ![http://forums.massassi.net/html/wink.gif [http://forums.massassi.net/html/wink.gif]](http://forums.massassi.net/html/wink.gif)
![http://forums.massassi.net/html/biggrin.gif [http://forums.massassi.net/html/biggrin.gif]](http://forums.massassi.net/html/biggrin.gif)