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